IBM Support

LI76648: NOT A MEMBER OF CLASS COMPILER ERROR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The C++ program fails to compile with C++ compiler with the
    following error message:
    
    $xlC -c t.cpp
    "t.cpp", line 17.10: 1540-0217 (S) "f" is not a member of "class
    B".
    
    
    Test program:
    
    $cat t.cpp
    ///// start of t.cpp /////
    template <class T>
    
    class A {
        void f()
        {
        }
    
        class B;
    };
    
    
    template <>
    class A<int>::B {
        static void g(A<int> &a)
        {
            a.f();
        }
    };
    ///// end of t.cpp //////
    

Local fix

  • N/A
    

Problem summary

  • This is a name lookup problem with a member class of a class
    template referencing the name of its containing template
    

Problem conclusion

  • The name lookup problem has been resolved
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI76648

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5724X1400

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2012-02-06

  • Closed date

    2012-02-06

  • Last modified date

    2012-02-06

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

    IV09297

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5724X1400

Applicable component levels

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

Document Information

Modified date:
17 October 2021