This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12222] explicit initialization of static template members seems ignored
- From: "stefaandr at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Sep 2003 17:53:38 -0000
- Subject: [Bug c++/12222] explicit initialization of static template members seems ignored
- References: <20030909101558.12222.stefaandr@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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?