This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34094] Undefined static data member in anonymous namespace can acquire a definition anyway
- From: "simon_baldwin at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Nov 2007 19:55:50 -0000
- Subject: [Bug c++/34094] Undefined static data member in anonymous namespace can acquire a definition anyway
- References: <bug-34094-11271@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from simon_baldwin at yahoo dot com 2007-11-15 19:55 -------
The definition's really there in 4.2.1, absent in 4.1.1:
$ 4.2.1/g++ -S ns1.cc && c++filt <ns1.s | grep B::x
movl $0, (anonymous namespace)::B::x
.local (anonymous namespace)::B::x
.comm (anonymous namespace)::B::x,4,4
$ 4.1.1/g++ -S ns1.cc && c++filt <ns1.s | grep B::x
movl $0, (anonymous namespace)::B::x
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34094