IBM Support

PI57129: AUTO CONSTEXPR STATEMENT CAUSING INTERNAL COMPILER ERROR

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Simple usage of the constexpr and auto type deduction C++11
    features on the same variable is encountering an internal
    compiler error.
    
       === TESTCASE ===
    
    int main()
    {
      static constexpr auto i = 5;
    }
    
    > xlc -Wc,"LANGLVL(CONSTEXPR)" -Wc,"LANGLVL(AUTOTYPEDEDUCTION)"
      test.cpp
    
    CCN5505(S) The build failed and there are no messages.
    CCN5527(I) The build failure may be because of an Internal
    Compiler Error or because a tool failed to generate a message.
    For more information visit:
    http://www.ibm.com/support/docview.wss?uid=swg21110810
    CCN0793(I) Compilation failed for file ./test.cpp.  Object file
    not created.
    
    >
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: z/OS XLC users of C++2011 features           *
    *                 constexpr and auto (when these features are  *
    *                 used together).                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: constexpr and auto used on the same     *
    *                      declaration will cause a circular       *
    *                      dependency leading to an internal       *
    *                      compiler error.                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Apply provided service.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI57129

  • Reported component name

    C/C++ FOR MVS

  • Reported component ID

    56551210A

  • Reported release

    791

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-02-12

  • Closed date

    2016-02-12

  • Last modified date

    2016-06-04

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

    PI55097

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

Modules/Macros

  •    CCNEPP
    

Fix information

  • Fixed component name

    C/C++ FOR MVS

  • Fixed component ID

    56551210A

Applicable component levels

  • R791 PSY UI35376

       UP16/03/10 P F603

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"791","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSQKCWV","label":"IBM C\/C++ for MVS\/ESA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"791","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
22 August 2024