IBM Support

LI78417: CONST VARIABLE DEFINED IN WHILE CONDITION CAUSING INTERNAL COMPILER ERROR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A small test case with a const variable defined in a while()
    loop parameter is causing an internal compiler error.
    
    
       === TEST CASE ===
    
    > cat test.cpp
    int main() {
        while (const int rcode = 0) {}
        return 0;
    }
    > xlC -c test.cpp
    xlC: 1501-230 (S) Internal compiler error; please contact your
    Service Representative. For more information visit:
    http://www.ibm.com/support/docview.wss?uid=swg21110810
    >
    

Local fix

  • Define variable outside while() loop
    

Problem summary

  • PROBLEM DESCRIPTION:
    An internal compiler error occurs with a loop with a const
    initializer as a condition.
    
    USERS AFFECTED:
    Users with loops using const initializers, such as while (const
    int rcode = 0).
    

Problem conclusion

  • The problem has been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI78417

  • 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 / Xsystem

  • Submitted date

    2015-02-13

  • Closed date

    2015-02-13

  • Last modified date

    2015-02-13

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

    IV67213

  • 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

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS2LWA","label":"XL C\/C++ for Blue Gene\/Q"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1","Edition":"","Line of Business":{"code":"LOB73","label":"Power TPS"}}]

Document Information

Modified date:
05 September 2024