Fixes are available
November 2009 PTF for XL C/C++ for AIX, V10.1
October 2010 PTF for XL C/C++ for AIX, V10.1
May 2012 PTF for XL C/C++ for AIX, V10.1
January 2013 PTF for XL C/C++ for AIX, V10.1
XL C/C++ for AIX Fix Pack 18 (July 2013 PTF) for 10.1
XL C/C++ for AIX Fix Pack 19 (October 2013 PTF) for 10.1
XL C/C++ for AIX Fix Pack 21 (October 2015 PTF) for 10.1
August 2009 PTF for XL C/C++ for AIX, V10.1
March 2010 PTF for XL C/C++ for AIX, V10.1
April 2010 PTF for XL C/C++ for AIX, V10.1
June 2010 PTF for XL C/C++ for AIX, V10.1
May 2011 PTF for XL C/C++ for AIX, V10.1
October 2011 PTF for XL C/C++ for AIX, V10.1
February 2012 PTF for XL C/C++ for AIX, V10.1
September 2012 PTF for XL C/C++ for AIX, V10.1
XL C/C++ for AIX Fix Pack 20 (October 2014 PTF) for 10.1
APAR status
Closed as program error.
Error description
At -O2, the compiler runs out of memory and abends because it goes into an infinite loop when trying to compile the following test case: ===Compile Line: xlC_r -c -O2 -w test.cpp ===Start of test.cpp: #include <map> class CATUnicodeString ; class CVisitorMother { public: virtual ~CVisitorMother() {}; virtual int accept() = 0; }; void myClass() { { class CVisiteur : public CVisitorMother { std::map<CATUnicodeString, std::pair<CATUnicodeString*, unsigned int> > _caches_tmp; public: CVisiteur() { }; ~CVisiteur() { }; int accept(){ }; }; }; }; =====End of test.cpp========= ===== ACTUAL OUTPUT: $xlC_r -c -O2 -w reduced.cpp xlC_r: 1501-230 (S) Internal compiler error; please contact your Service Representative ===== EXPECTED OUTPUT: Should not abend.
Local fix
n/a
Problem summary
This problem is seen only with local classes, inlining and implicit template class instantiation. The compiler entered a loop due to a mishandled implicit instantiation required by a local class.
Problem conclusion
The compiler no longer mishandles the implicit class template instantiation.
Temporary fix
Comments
APAR Information
APAR number
IZ56456
Reported component name
XL C++ AIX
Reported component ID
5724U8100
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-07-31
Closed date
2009-07-31
Last modified date
2009-08-27
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++ AIX
Fixed component ID
5724U8100
Applicable component levels
Document Information
Modified date:
04 October 2021