Skip to main content

LI77144: 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

    LI77144

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-12-17

  • Closed date

    2012-12-17

  • Last modified date

    2012-12-17

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

    IV25898

  • 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

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

XL C/C++ for Linux

Compiler


Software version:
12.1


Reference #:
LI77144


Modified date:
2012-12-17

Translate my page

Content navigation