[Bug c++/34094] Undefined static data member in anonymous namespace can acquire a definition anyway
simon_baldwin at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 15 19:56:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list