IBM Support

IV25898: INTERNAL ERROR WITH PRIVATE BASE CASE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An internal compiler error is encountered in a code scenario
    involving private inheritance and template usage.
    
    
         =====  TEST CASE  =====
    
    template <class MYTYPE>
    struct Myclass
    {
        explicit Myclass();
        template <class MYTYPE2>
        Myclass(Myclass<MYTYPE2>& alias, MYTYPE *ptr);
        MYTYPE *ptr() const;
    };
    
    struct Temp {};
    
    struct Class1 {};
    
    class  Class2 : private Class1 {};
    
    template <typename mytype>
    struct Class3 : Class2
    {
        Class3(Managed<Class1> params) {}
    };
    
    
    
    void test()
    {
        Managed<class3<Temp> > var;
        Managed<class2> sharedRequest(var, var.ptr());
    }
    
    
    $ xlC -c 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

Problem summary

  • PROBLEM DESCRIPTION:
    Internal compiler error from invalid private base member
    access.
    
    USERS AFFECTED:
    The problem would be seen if the compiler was attempting to
    generate a warning for an invalid access to a member of a
    private base class.
    

Problem conclusion

  • The internal error has been fixed and all duplicate messages
    have also been corrected.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV25898

  • Reported component name

    XL C++ AIX

  • Reported component ID

    5724U8100

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-08

  • Closed date

    2012-10-03

  • Last modified date

    2012-10-03

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

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

    IV29507 IV31741 LI77144 LI77439

Fix information

  • Fixed component name

    XL C/C++ AIX

  • Fixed component ID

    5724X1300

Applicable component levels

  • RB10 PSY U855106

       UP A

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

Document Information

Modified date:
03 October 2012