IBM Support

IJ08117: INTERNAL COMPILER ERROR IN XLCENTRY

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

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

    IJ08117

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-08-01

  • Closed date

    2018-08-01

  • Last modified date

    2018-08-01

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

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

    IJ08177

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels



Document information

More support for: XL C for AIX
Compiler

Software version: 13.1

Reference #: IJ08117

Modified date: 01 August 2018