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]

[Bug c++/25748] Template instantiated twice



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-01-11 12:42 -------

3) And also defined in the anonymous namespace in another module:
   namespace {   template<typename T> T foo<T>::t = 0; }

That is invalid code as you are instantiating in a different namespace.  I
think there is a bug about accepting this code (I have not looked yet).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25748



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