Fixes are available
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
An infinite loop is seen in the C++ front end xlCentry component of the compiler when a const qualified template type is used: === TEST CASE === class Test {}; template <class T> struct MyStruct { typedef void (T::*CallType)()const; }; int main() { //MyStruct<Test>::CallType t; // Works MyStruct<const Test>::CallType t; // Infinite loop return 0; }
Local fix
Remove const qualifier.
Problem summary
PROBLEM DESCRIPTION: Infinite loop caused by typedef const template definition. USERS AFFECTED: Users with typedef'd templates which have CV qualifiers.
Problem conclusion
An index variable that was not being updated was corrected, and users can now use CV qualifiers on typedef'd templates.
Temporary fix
Comments
APAR Information
APAR number
IV62158
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
2014-07-01
Closed date
2014-08-19
Last modified date
2014-08-19
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 PSY U867112
UP C
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]
Document Information
Modified date:
19 August 2014