[Bug c++/34094] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-11-15 Thread simon_baldwin at yahoo dot com
--- 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

[Bug c++/34094] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-11-14 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-11-14 19:21 --- IIRC this is not required to be diagnostic anyways. What is happening is that we now mark the static data member as local to the TU which forces it to be outputted. This is only an issue in an anonymous namespace.

[Bug c++/34094] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-11-14 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2007-11-15 04:40 --- It may also be that the compiler sees that the store is dead and removes it. Did you check whether the store appears in the assembler output? W. -- bangerth at dealii dot org changed: What|Removed