[Bug c++/19569] no code for explicit instantiation of template class specialization

lerdsuwa at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 24 14:27:00 GMT 2005


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2005-01-24 14:27 -------
There is a defect report DR259 about this issue:
  http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#259

According to the DR, the original standard mentions that
the instantiation:
  template class A<char>;
is invalid because there is already a specialization
  template <> class A<char> { ... };
declared earlier.

In the revised version of the standard, which includes the
resolution of this DR, the instantiation is ignored.
Recent GCC releases follow this behavior.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19569



More information about the Gcc-bugs mailing list