PR c++/29365
commit96cc8e6a09929073a8e6577fb73e4fafed0949cf
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Aug 2007 17:23:37 +0000 (22 17:23 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Aug 2007 17:23:37 +0000 (22 17:23 +0000)
tree15ee08cdd7c8f4fd56f28d2c93470b2102542aba
parent660abb5f4975d71c83009b248f02f01cfedcfb86
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127711 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/lex.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/warn/anonymous-namespace-1.C
gcc/testsuite/g++.dg/warn/anonymous-namespace-2.C
gcc/testsuite/g++.dg/warn/anonymous-namespace-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/anonymous-namespace-3.h [new file with mode: 0644]