IBM Support

LI78453: INTERNAL COMPILER ERROR WITH SIZEOF WHEN USING -QINLINE

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The presence of the sizeof operator in a function that gets
    inlined is causing an internal error to occur in the xlCentry
    component of the compiler.
    
    
       === TEST CASE ===
    
    struct mystruct { char val[80]; };
    void func1(void) { unsigned int num = sizeof(mystruct::val); }
    void func2(void) { func1(); }
    
    
    $ xlC -qinline -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

  • Do not use -qinline
    

Problem summary

  • PROBLEM DESCRIPTION:
    Inlining code containing the sizeof operator is encountering an
    error condition within the compiler.
    
    USERS AFFECTED:
    Users of the sizeof operator and code inlining.
    

Problem conclusion

  • The issue has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI78453

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

    IV61729

  • 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



Document information

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

Software version: 13.1

Reference #: LI78453

Modified date: 25 February 2015