This is the mail archive of the
gcc-prs@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: danglin at gcc dot gnu dot org
- To: danglin at gcc dot gnu 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
- Date: 4 Dec 2002 21:57:18 -0000
- Subject: Re: c++/7934: [HP UX] definition of static member for template class missing in obj file
- Reply-to: danglin at gcc dot gnu dot org, danglin at gcc dot gnu 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
Synopsis: [HP UX] definition of static member for template class missing in obj file
Responsible-Changed-From-To: unassigned->danglin
Responsible-Changed-By: danglin
Responsible-Changed-When: Wed Dec 4 13:57:17 2002
Responsible-Changed-Why:
Assigned.
State-Changed-From-To: open->closed
State-Changed-By: danglin
State-Changed-When: Wed Dec 4 13:57:17 2002
State-Changed-Why:
[HP-UX] 32-bit port doesn't support weak symbols and as a
result template classes require explicit instantiation.
The example will compile and run correctly if you add
template class A<int>;
For other examples, look at the instantiations in
libstdc++-v3/src/*-inst.cc.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7934