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++/37256] extern template / explicit instantiation broken in 4.4.0-pre



------- Comment #4 from ciaran dot mccreesh at googlemail dot com  2008-08-27 17:07 -------
I don't expect it to link. I do expect it to compile. In real code I would of
course have struct B in a header and template class B<int>; in a different
source file.

So far as I can see this is a change in behaviour in 4.4 that goes against both
the draft standard and how the GCC extension used to work, and which makes
'extern template' effectively useless.


-- 


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


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