]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/29365 (Unnecessary anonymous namespace warnings)
authorJason Merrill <jason@redhat.com>
Wed, 22 Aug 2007 20:40:30 +0000 (16:40 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 22 Aug 2007 20:40:30 +0000 (16:40 -0400)
commit38b57f797f2730493d78ce000322e9f86596451f
tree5925e6e99b207a0494873e4a3676afe558a370a1
parent35597e28f7e09674f2c6eaf596af76e54046adeb
re PR c++/29365 (Unnecessary anonymous namespace warnings)

        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.

From-SVN: r127716
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/lex.c
gcc/cp/pt.c