This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]