APAR status
Closed as program error.
Error description
====TESTCASE: > cat testcode.atomic.cxx #include <atomic> #include <iostream> int main() { const int N = 10; std::atomic<double> *array = new std::atomic<double>[N] {}; for (int i=0; i<N; i++) std::cout << array[i] << std::endl; delete[] array; ======================== xlc++ -std=c++11 testcode.atomic.cpp testcode.atomic.cpp:13:59: error: 1540-2991 The expression is not supported. std::atomic<double> *array = new std::atomic<double>[N] {};
Local fix
N/A
Problem summary
USERS AFFECTED: Users who have C++ 11 and forward code consisting of an operator new that has a uniform initializer-style initializer consisting of an empty initializer list may be affected by this issue. PROBLEM DESCRIPTION: The compiler would produce an unsupported error for such code.
Problem conclusion
Support for some code consisting of an operator new that has a uniform initializer-style initializer consisting of an empty initializer list has been added.
Temporary fix
Comments
APAR Information
APAR number
LI82570
Reported component name
XL C/C++ LINUX
Reported component ID
5725C7310
Reported release
G11
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2022-03-23
Closed date
2022-09-19
Last modified date
2022-09-19
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
LI82757
Fix information
Fixed component name
XL C/C++ LINUX
Fixed component ID
5725C7310
Applicable component levels
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXVZZ","label":"XL C\/C++ for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"G11","Line of Business":{"code":"LOB57","label":"Power"}}]
Document Information
Modified date:
19 September 2022