Fixes are available
XL C/C++ for AIX Fix Pack 12 (May 2015 PTF) for 12.1
XL C/C++ for AIX Fix Pack 13 (August 2015 Update) for 12.1
XL C/C++ for AIX Fix Pack 14 (December 2015 Update) for 12.1
XL C/C++ for AIX Fix Pack 15 (April 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 16 (July 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 17 (November 2016 Update) for 12.1
XL C/C++ for AIX Fix Pack 18 (February 2017 Update) for 12.1
XL C/C++ for AIX Fix Pack 19 (August 2017 Update) for 12.1
XL C/C++ for AIX Fix Pack 20 (March 2018 Update) for 12.1
XL C/C++ for AIX Fix Pack 21 (January 2019 Update) for 12.1
APAR status
Closed as program error.
Error description
An invalid virtual function definition is causing an internal compiler error instead of a diagnostic message. === TEST CASE === #include <memory> class Parent { public: virtual long test() const = 0; }; class ChildClass : public Parent { public: virtual long test() const; }; template <typename T> class ChildTemplateClass : public Parent {}; template <typename T> long ChildTemplateClass<T>::ChildClass::test() const { return 0; } std::auto_ptr<Parent> test() { return std::auto_ptr<Parent>( new ChildTemplateClass<int>()); } === OUTPUT === $ xlC apar.cpp xlC: 1501-230 (S) Internal compiler error; please contact your Service Representative. For more information visit: http://www.ibm.com/support/docview.wss?uid=swg21110810 $ === EXPECTED OUTPUT === $ xlC apar.cpp "apar.cpp", line 17.29: 1540-0129 (S) The qualifier "ChildClass" is not defined in the current scope. $
Local fix
Problem summary
PROBLEM DESCRIPTION: The compiler is not correctly emitting the expected error message for the errror condition, causing an internal compiler error. USERS AFFECTED: The error might be seen after an implicit instantiation failed with a valid error message.
Problem conclusion
The problem has been resolved.
Temporary fix
Comments
APAR Information
APAR number
IV69096
Reported component name
XL C/C++ FOR AI
Reported component ID
5725C7200
Reported release
D10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2015-02-02
Closed date
2015-05-25
Last modified date
2015-05-25
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++ FOR AI
Fixed component ID
5725C7200
Applicable component levels
RD10 PSY
UP
Document Information
Modified date:
03 October 2021