This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37256] extern template / explicit instantiation broken in 4.4.0-pre
- From: "ciaran dot mccreesh at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2008 17:07:47 -0000
- Subject: [Bug c++/37256] extern template / explicit instantiation broken in 4.4.0-pre
- References: <bug-37256-13262@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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