Fixes are available
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
Instantiation of a specialized template using a 'static const' variable is causing the compiler to output an invalid error when expecting a 'const' variable. === TEST CASE == struct A { static const int val; }; template <const int &T> struct B { }; B<A::val> tmp; $ xlC test.cpp "test.cpp", line 6.3: 1540-1266 (S) A template argument with type "const int" cannot be converted to a template parameter with type "const int &". $
Local fix
N/A
Problem summary
PROBLEM DESCRIPTION: Diagnostic checking of arguments for the non-type template parameter of reference type was incorrect. USERS AFFECTED: The problem is specific to non-type template parameter of reference type.
Problem conclusion
The problem has been resolved.
Temporary fix
Comments
APAR Information
APAR number
IV79439
Reported component name
XL C/C++ FOR AI
Reported component ID
5725C7200
Reported release
C10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2015-12-07
Closed date
2016-03-10
Last modified date
2016-03-10
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":"12.1","Edition":"","Line of Business":{"code":"LOB73","label":"Power TPS"}}]
Document Information
Modified date:
19 August 2024