This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38613] extern template suppresses VFT but should not
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2008 18:35:51 -0000
- Subject: [Bug c++/38613] extern template suppresses VFT but should not
- References: <bug-38613-17113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from jason at gcc dot gnu dot org 2008-12-31 18:35 -------
Discussion on the Core reflector suggests that the G++ behavior is what people
expect, and that we should fix the new wording to reflect that.
One commenter pointed out that 14.7.2/10 says that "An entity that is the
subject of an explicit instantiation declaration and that is also used in the
translation unit shall be the subject of an explicit instantiation definition
somewhere in the program; otherwise the program is ill-formed, no diagnostic
required."
A<int> is the subject of an explicit instantiation declaration but not
definition, so the testcase is ill-formed.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38613