Fixes are available
October 2012 PTF for XL C/C++ for AIX, V11.1
February 2013 PTF for XL C/C++ for AIX, V11.1
XL C/C++ for AIX Fix Pack 14 (May 2013 PTF) for 11.1
XL C/C++ for AIX Fix Pack 15 (August 2013 PTF) for 11.1
XL C/C++ for AIX Fix Pack 16 (November 2013 PTF) for 11.1
XL C/C++ for AIX Fix Pack 17 (February 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 18 (May 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 19 (August 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 20 (November 2014 PTF) for 11.1
XL C/C++ for AIX Fix Pack 21 (April 2015 PTF) for 11.1
XL C/C++ for AIX Fix Pack 22 (September 2015 PTF) for 11.1
XL C/C++ for AIX Fix Pack 23 (March 2016 PTF) for 11.1
XL C/C++ for AIX Fix Pack 24 (September 2016 PTF) for 11.1
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
IV28123
Reported component name
XL C/C++ AIX
Reported component ID
5724X1300
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-09-18
Closed date
2012-10-03
Last modified date
2012-10-03
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++ AIX
Fixed component ID
5724X1300
Applicable component levels
RB10 PSY U855106
UP A
Document Information
Modified date:
03 October 2012