APAR status
Closed as program error.
Error description
With -qlanglvl=nonewexpn (default), the compiler will not null-check the new allocation, which may return 0 upon failure.
Local fix
-qchecknew is not documented for XLC++ for AIX but does force the null check.
Problem summary
USERS AFFECTED: Users who compile with xlC might be affected by this issue. PROBLEM DESCRIPTION: With -qlanglvl=nonewexpn (default), the compiler will not null-check the new allocation, which may return 0 upon failure.
Problem conclusion
The compiler knows the global non placement new operator may return null with -qlanglvl=nonewexpn. So it now inserts the null check without the user needing to specify an option to force it so.
Temporary fix
Comments
APAR Information
APAR number
IJ36573
Reported component name
XL C/C++ FOR AI
Reported component ID
5725C7200
Reported release
D13
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2021-12-21
Closed date
2021-12-21
Last modified date
2021-12-21
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
[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"D13"}]
Document Information
Modified date:
22 December 2021