IBM Support

IJ08177: INTERNAL COMPILER ERROR IN XLCENTRY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Compiler produces an internal compiler error in xlcetnry when
    compiling the following testcase:
    
    ===== COMPILE COMMAND:
    xlc -c test.c
    
    ===== TESTCASE:
    $ cat test.c
    #define MIN(a,b) ((a)<(b) ? (a) : (b))
    #define TEST_FAIL_CASE MIN(30, 30)
    #define TEST_SUCC_CASE 30
    #define TEST_STATIC_ASSERT(c) { enum { TEST_static_assert =
    1/(int)(!!(c)) };
    
    
    int main(int argc, char *argv[])
    {
    TEST_STATIC_ASSERT(TEST_FAIL_CASE <= 30);
    TEST_STATIC_ASSERT(TEST_SUCC_CASE <= 30);
    printf("Testing TEST_STATIC_ASSERT\n");
    return 0;
    }
    $
    
    
    ===== ACTUAL OUTPUT:
    $ xlc -c test.c
    /opt/IBM/xlC/13.1.0/bin/.orig/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
    $
    
    ===== EXPECTED OUTPUT:
    Clean compile
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Users who code a conditional expression in a compile-time
    constant expression are affected by this issue
    
    PROBLEM DESCRIPTION:
    Compiler produces an internal compiler error in the front end
    while handling conditional expression in a compile-time constant
    expression.
    

Problem conclusion

  • The compiler has been fixed to handle the above scenario
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ08177

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D13

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-08-02

  • Closed date

    2018-08-02

  • Last modified date

    2018-08-02

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

    IJ08117

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

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH2K","label":"XL C for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"D13"}]

Document Information

Modified date:
24 August 2021