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++/12222] explicit initialization of static template members seems ignored


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?


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