IBM Support

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

    IV61729

  • Reported component name

    XL C++ AIX

  • Reported component ID

    5724U8100

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-06-20

  • Closed date

    2014-12-17

  • Last modified date

    2014-12-17

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

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

    LI78453

Fix information

  • Fixed component name

    XL C/C++ FOR AI

  • Fixed component ID

    5725C7200

Applicable component levels

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

Document Information

Modified date:
21 August 2024