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

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Nov 22 14:06:00 GMT 2007



------- Comment #6 from jakub at gcc dot gnu dot org  2007-11-22 14:06 -------
Subject: Bug 34094

Author: jakub
Date: Thu Nov 22 14:06:06 2007
New Revision: 130351

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130351
Log:
        PR c++/34094
        * decl2.c (cp_write_global_declarations): Issue error about static
        data members in anonymous namespace which are declared and used,
        but not defined.

        * g++.dg/ext/visibility/anon7.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ext/visibility/anon7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl2.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34094



More information about the Gcc-bugs mailing list