This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25748] Template instantiated twice
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2006 14:16:41 -0000
- Subject: [Bug c++/25748] Template instantiated twice
- References: <bug-25748-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-01-11 14:16 -------
Yes this is invalid code, in 4.1.0 and above we get:
t.cc:2: error: definition of 'foo<T>::t' is not in namespace enclosing 'foo<T>'
This is a dup of bug 13140.
*** This bug has been marked as a duplicate of 13140 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25748