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: "hstong at ca dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Dec 2008 00:04:50 -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 #6 from hstong at ca dot ibm dot com 2008-12-24 00:04 -------
(In reply to comment #5)
If you mean the lack of a diagnostic for a violation of a diagnosable rule in
the following self-contained source, then yes. (Comeau produces a diagnostic
for this violation of N2800 14.7.2 [temp.explicit] paragraph 10.)
Please advise if a separate bug report should be opened.
SOURCE:
template <class T>
struct A {
A();
};
template <class T>
A<T>::A() { }
template A<int>::A(); // explicit instantiation definition before
extern template struct A<int>; // explicit instantiation declaration
int main(void) {
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38613