Fixes are available
APAR status
Closed as program error.
Error description
Compiler incorrectly issues spurious warning about passing non-POD via ellipsis. Consider the following example: $ cat test.cpp //////////////////////////////////////////// #include <string> std::string foo(std::string s, ...) { return ""; } int main(int argc, char** argv) { foo("the nameless are like dust"); return 0; } //////////////////////////////////////////// Warning is issued at the compile step: xlC -o test_program test.cpp "test.cpp", line 8.7: 1540-2924 (W) Cannot pass an argument of non-POD class type "std::basic_string<char,std::char_traits<char>,std::allocator<ch ar> >" through ellipsis.
Local fix
N/A
Problem summary
Spurious warning about passing non-POD via ellipsis
Problem conclusion
The check producing the message was adjusted to account for the compiler generated class-return argument.
Temporary fix
Comments
APAR Information
APAR number
LI77440
Reported component name
XL C/C++ FOR LI
Reported component ID
5724X1400
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2013-06-11
Closed date
2013-06-11
Last modified date
2013-06-11
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 LI
Fixed component ID
5724X1400
Applicable component levels
RB10 PSN IV28123
UP06/09/13
[{"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":"B10","Line of Business":{"code":"LOB57","label":"Power"}}]
Document Information
Modified date:
14 October 2021