Fixes are available
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 C++ typeid feature is returning an incorrect function signature string. The string returned from the typeid name() method is not distinguishing between functions with and without exception specifiers. ===== TEST CASE ===== ---------------------------------------------- extern int *withthrow() throw (); extern int *nothrow() ; std::string sg2 = typeid(withthrow).name(); std::string sf2 = typeid(nothrow).name(); printf("%s # %s\n", sf2.c_str(), sg2.c_str()); OUTPUT ===>> "int *() throw() # int *() throw()" ---------------------------------------------- extern int *withthrow() throw (); extern int *nothrow(); std::string sg2 = typeid(nothrow).name(); std::string sf2 = typeid(withthrow).name(); printf("%s # %s\n", sf2.c_str(), sg2.c_str()); OUTPUT ===>> "int *() # int *()" ----------------------------------------------
Local fix
Problem summary
PROBLEM DESCRIPTION: Exception specification is included in typeid for a function causing inconsistency. USERS AFFECTED: Users depending on the typeid output for functions with exception specifications.
Problem conclusion
The problem has been resolved, and the exception specification is no longer output in the typeid name.
Temporary fix
Comments
APAR Information
APAR number
IV22256
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-06-06
Closed date
2012-10-03
Last modified date
2012-10-03
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 U855106
UP A
Document Information
Modified date:
03 October 2012