This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7934: [HP UX] definition of static member for template class missing in obj file
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, michael_gu at maxtor dot com, mkjyg at charter dot net, nobody at gcc dot gnu dot org
- Date: 4 Dec 2002 15:21:14 -0000
- Subject: Re: c++/7934: [HP UX] definition of static member for template class missing in obj file
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, michael_gu at maxtor dot com, mkjyg at charter dot net, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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