IBM Support

IV87912: INVALID LABEL VALUE EXPRESSION CAUSING INTERNAL COMPILER ERROR

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When the 'label value expressions' IBM extension is used
    incorrectly (i.e. referencing a label OUTSIDE the current
    function), the compiler encounters an internal compiler error
    instead of outputting an informative error message.
    
    
       === TEST CASE ===
    
    static void* ext[1] = { &&sym };
    
    void test()
    {
        int check = 0;
        switch (check)
        {
          sym:
          default: {}
          break;
        }
    }
    
    $ xlc -c test.c
    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

  • Correct invalid label usage.
    

Problem summary

  • PROBLEM DESCRIPTION:
    Compilation failed with an internal compiler error.
    
    USERS AFFECTED:
    Users attempting to use the 'label value expression' extension
    incorrectly (outside of a function scope).
    

Problem conclusion

  • The compiler now issues an error diagnostic instead of failing
    with an internal compiler error when compiling label value
    expressions that appear outside function scope.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV87912

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-08-15

  • Closed date

    2016-08-15

  • Last modified date

    2016-08-15

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

    IV85023

  • 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



Document information

More support for: XL C for AIX
Compiler

Software version: 13.1

Reference #: IV87912

Modified date: 15 August 2016