Skip to main content

LI77118: 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

    LI77118

  • Reported component name

    XL C/C++ FOR BG

  • Reported component ID

    5799AG100

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-11-23

  • Closed date

    2012-11-23

  • Last modified date

    2012-11-23

  • APAR is sysrouted FROM one or more of the following:

    IV28123

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    XL C/C++ FOR BG

  • Fixed component ID

    5799AG100

Applicable component levels

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

XL C/C++ for Blue Gene/Q

Compiler


Software version:
12.1


Reference #:
LI77118


Modified date:
2012-11-23

Translate my page

Content navigation