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++/38613] extern template suppresses VFT but should not



------- 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


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