IBM Support

LI78442: INTERNAL COMPILER ERROR WITH CASTING VARIABLE TYPE

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When compiling code type-casting uninitialized variables with
    optimization, an internal compiler error is encountered.
    
    
    
       === TEST CASE ===
    
    extern void extfunc(int);
    
    int func3(int) { return 1; }
    
    class MyClass
    {
        int value;
        virtual MyClass Create_indexed(int v1, const int *v2) const
        {
            MyClass vvv;
            {
             int err = func3((int) value) ;
             if (err) { extfunc(err); }
            };
            return vvv;
        }
    };
    
    void func1( double *c);
    
    void func2(int a, int b)
    {
     double num_array[a][b];
     func1(( double*)num_array);
    
      return;
    }
    
    
    
    $ xlC -c -O2 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 optimization.
    

Problem summary

  • Internal compiler error with casting variable type
    

Problem conclusion

  • The problem had been addressed
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI78442

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-02-25

  • Closed date

    2015-02-25

  • Last modified date

    2015-02-25

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

    LI78339

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5725C7300

Applicable component levels



Document information

More support for: XL C/C++ for Linux
Compiler

Software version: 13.1

Reference #: LI78442

Modified date: 25 February 2015