------- Comment #31 from jason at gcc dot gnu dot org  2007-08-22 17:23 -------
Subject: Bug 29365

Author: jason
Date: Wed Aug 22 17:23:37 2007
New Revision: 127711

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127711
Log:
        PR c++/29365
        * pt.c (outermost_tinst_level): New function.
        * lex.c (in_main_input_context): New function.
        * decl2.c (constrain_class_visibility): Use it to avoid warning
        about uses of the anonymous namespace in the main input file.

Added:
    trunk/gcc/testsuite/g++.dg/warn/anonymous-namespace-3.C
    trunk/gcc/testsuite/g++.dg/warn/anonymous-namespace-3.h
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/lex.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/g++.dg/warn/anonymous-namespace-1.C
    trunk/gcc/testsuite/g++.dg/warn/anonymous-namespace-2.C


-- 


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

Reply via email to