This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10307: constructor for static object of template omitted
- From: "giovannibajo at libero dot it" <giovannibajo at libero dot it>
- To: "kilpatds" <kilpatds at oppositelock dot org>
- To: "gcc-gnats" <gcc-gnats at gcc dot gnu dot org>
- To: "gcc-bugs" <gcc-bugs at gcc dot gnu dot org>
- To: "nobody" <nobody at gcc dot gnu dot org>
- To: "gcc-prs" <gcc-prs at gcc dot gnu dot org>
- Date: Sat, 5 Apr 2003 02:21:40 +0200
- Subject: Re: c++/10307: constructor for static object of template omitted
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10307
Wolfgang is right, this is not a bug. The instantiation of static member template is completely orthogonal to the instantiantion of the enclosing template class.
As explained, the problem of the original poster can be solved with an explicit instantiation.
Giovanni Bajo