Fixes are available
April 2012 PTF for XL C/C++ for AIX, V11.1
July 2012 PTF for XL C/C++ for AIX, V11.1
October 2012 PTF for XL C/C++ for AIX, V11.1
February 2013 PTF for XL C/C++ for AIX, V11.1
XL C/C++ for AIX Fix Pack 14 (May 2013 PTF) for 11.1
XL C/C++ for AIX Fix Pack 15 (August 2013 PTF) for 11.1
XL C/C++ for AIX Fix Pack 16 (November 2013 PTF) for 11.1
XL C/C++ for AIX Fix Pack 17 (February 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 18 (May 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 19 (August 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 20 (November 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 21 (April 2015 PTF) for 11.1
XL C/C++ for AIX Fix Pack 22 (September 2015 PTF) for 11.1
XL C/C++ for AIX Fix Pack 23 (March 2016 PTF) for 11.1
XL C/C++ for AIX Fix Pack 24 (September 2016 PTF) for 11.1
APAR status
Closed as program error.
Error description
The following test case produces a template argumemt miss-match when it shouldn't. ===== Compile Command: bgxlC_r -c simple.cpp ===== TESTCASE: $cat test.cpp template<typename T,typename Int=int> class Foo; template<typename T> class Foo<T> { public: void Bar() const; }; template<typename T> void Foo<T>::Bar() const {} int main( int argc, char* argv[] ) { Foo<double> foo; foo.Bar(); return 0; } $ ===== ACTUAL OUTPUT: $bgxlC_r -c test.cpp "test.cpp", line 14.6: 1540-0708 (S) The template argument 2 does not match the corresponding template parameter of "template class Foo". ===== EXPECTED OUTPUT: Should compile clean
Local fix
n/a
Problem summary
USERS AFFECTED: The problem may be seen when a member of a partial specialization is defined out-of-line and the specialization uses a default template parameter argument. PROBLEM DESCRIPTION: Incorrect name lookup results in bad argument mismatch error.
Problem conclusion
The compiler has been resolved to take care of the above case.
Temporary fix
Comments
APAR Information
APAR number
IV18490
Reported component name
XL C/C++ AIX
Reported component ID
5724X1300
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-03-29
Closed date
2012-03-29
Last modified date
2012-03-29
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
XL C/C++ AIX
Fixed component ID
5724X1300
Applicable component levels
RB10 PSN U851438
UP06/09/13 C
Document Information
Modified date:
29 March 2012