IBM Support

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

    LI78474

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-02-25

  • Closed date

    2015-02-25

  • Last modified date

    2015-02-25

  • 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 LI

  • Fixed component ID

    5725C7300

Applicable component levels

  • RD10 PSY

       UP



Document information

More support for: XL C/C++ for Linux
Compiler

Software version: 13.1

Reference #: LI78474

Modified date: 25 February 2015