This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/7934: [HP UX] definition of static member for template class missing in obj file


Old Synopsis: definition of static member for template class missing in obj file
New Synopsis: [HP UX] definition of static member for template class missing in obj file

State-Changed-From-To: feedback->open
State-Changed-By: bangerth
State-Changed-When: Wed Dec  4 07:21:13 2002
State-Changed-Why:
    Reporter gave this example
    ----------------------
    template <class T>
    class A
    {
     public:
      static T * instance;
    };
    
    template <class T>
    T * A<T>::instance = 0;
    
    int main()
    {
      A<int> cB;
      cB.instance=(int*)1;
    }
    --------------------------
    It is supposedly not working on this platform.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7934


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]