IBM Support

IJ21755: CONDITIONAL EXPR OPTIMIZATION MAY LEAVE DANGLING EH INSTRUMENTATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When compiling the following test case, the compiler leads to an
    Internal Compiler Error:
    
    ====TESTCASE:
    $ cat test.cpp
    #include<new>
    
    static const int val = 42;
    
    extern long arr[1];
    
    void foo(const long &a)
    {
      (val == 42) ? 0 : ((void) (new (&arr[0]) long (a)), 0);
    }
    $
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Users that have test cases which make use of conditional
    expression with new on either
    the dead true or false side maybe affected by this issue.
    
    PROBLEM DESCRIPTION:
    Dead code elimination fails to mark dead EH state table entries
    removed,
    leading to compiler abend.
    

Problem conclusion

  • The fix marks the dead expression EH state table entries
    removed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ21755

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-12-24

  • Closed date

    2019-12-24

  • Last modified date

    2019-12-24

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

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

    IJ21760 IJ36768

Fix information

  • Fixed component name

    XL C/C++ FOR AI

  • Fixed component ID

    5725C7200

Applicable component levels

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

Document Information

Modified date:
22 December 2021