Fixes are available
XL C/C++ for AIX Fix Pack 3 (April 2015 PTF) for 13.1
XL C/C++ for AIX Fix Pack 4 (July 2015 PTF) for 13.1
XL C/C++ for AIX Fix Pack 5 (November 2015 PTF) for 13.1
XL C/C++ for AIX Fix Pack 6 (February 2016 PTF) for 13.1
XL C/C++ for AIX Fix Pack 7 (May 2016 PTF) for 13.1
XL C/C++ for AIX Fix Pack 8 (August 2016 PTF) for 13.1
XL C/C++ for AIX Fix Pack 9 (June 2017 PTF) for 13.1
XL C/C++ for AIX Fix Pack 10 (February 2018 PTF) for 13.1
XL C/C++ for AIX Fix Pack 11 (November 2018 PTF) for 13.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
IV72807
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 / Xsystem
Submitted date
2015-04-28
Closed date
2015-04-28
Last modified date
2015-04-28
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
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"13.1","Edition":"","Line of Business":{"code":"LOB73","label":"Power TPS"}}]
Document Information
Modified date:
19 August 2024