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

Reply via email to