Fixes are available
March 2009 Update for XL C/C++ for Linux, V10.1
October 2009 Update for XL C/C++ for Linux, V10.1
June 2011 Update for XL C/C++ for Linux, V10.1
XL C/C++ for Linux Fix Pack 8 (January 2014 Update) for 10.1
August 2010 Update for XL C/C++ for Linux, V10.1
January 2011 Update for XL C/C++ for Linux, V10.1
January 2012 Update for XL C/C++ for Linux, V10.1
July 2012 Update for XL C/C++ for Linux, V10.1
APAR status
Closed as program error.
Error description
The test case: -- a.C -- struct Char { Char(); Char(const Char&); ~Char(); }; bool foo(Char&); inline const Char trans() { Char theResult; foo(theResult); return theResult; } void bar(); void * openFile() { const Char result(trans()); bar(); return 0; } -- a.C -- is generating a SYM for theResult after inlining into openFile().
Local fix
N/A
Problem summary
This issue possibly affects code that throws an exception. A test case cannot seem to be deduced that will actually cause a problem in real life code. This can only be seen when reading the exception handling tables. The problem was because the state tablry contains a reference to a variable that was removed as a result of the named return value optimzations.
Problem conclusion
The parameter inliner should no longer check for a name match of the class return value, but check if the parameter has a specific flag set.
Temporary fix
Comments
APAR Information
APAR number
LI74311
Reported component name
XL C/C++ SLES10
Reported component ID
5724U8300
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-03-30
Closed date
2009-03-30
Last modified date
2009-03-30
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++ SLES10
Fixed component ID
5724U8300
Applicable component levels
RA10 PSN IZ37130
UP06/09/13
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A.1","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Document Information
Modified date:
16 October 2021