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] [4.2/4.3 Regression] Undefined static data member in anonymous namespace can acquire a definition anyway



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


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