IBM Support

IV28123: WARNING ABOUT PASSING NON-POD VIA ELLIPSIS

Subscribe

You can track all active APARs for this component.

 

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

Fix information

  • Fixed component name

    XL C/C++ AIX

  • Fixed component ID

    5724X1300

Applicable component levels

  • RB10 PSY U855106

       UP A

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
03 October 2012