[Bug c++/12222] explicit initialization of static template members seems ignored

stefaandr at hotmail dot com gcc-bugzilla@gcc.gnu.org
Tue Sep 9 17:53:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From stefaandr at hotmail dot com  2003-09-09 17:53 -------
Appearantly, if I do a specialized initialization
  template <> b a<float>::b1 = b();
and a templated one
  template <class T> b a<T>::b1 = b();
over different object files, the result of the linking is that the same object
(same this pointer) is initialized twice (seen by std-outing something inside
the constructor).  Is this a bug in the linker or the compiler?



More information about the Gcc-bugs mailing list