This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14102] New: Static data member template incorrect initialization
- From: "ofv at wanadoo dot es" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Feb 2004 23:30:57 -0000
- Subject: [Bug c++/14102] New: Static data member template incorrect initialization
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
An specialized static data member template initialization depends on another
template static data member. When the program consists on one translation unit,
it works ok. When another translation unit references the static data member,
the initialization is incorrect.
To reproduce:
> g++ t.cpp
> ./a.out
1
> g++ t.cpp t2.cpp
> ./aout
0
0
--
Summary: Static data member template incorrect initialization
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ofv at wanadoo dot es
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14102