re PR c++/29365 (Unnecessary anonymous namespace warnings)
authorSeongbae Park <seongbae.park@gmail.com>
Mon, 16 Apr 2007 16:49:02 +0000 (16:49 +0000)
committerSeongbae Park <spark@gcc.gnu.org>
Mon, 16 Apr 2007 16:49:02 +0000 (16:49 +0000)
commit8fff206014983b3f02f42b442d4b7c94942fc1de
treea76fd122db7d411dbe53fb1858ea5a4f4db27197
parentde41203b65518a7a7a3ee16ae595b542021673b4
re PR c++/29365 (Unnecessary anonymous namespace warnings)

gcc/ChangeLog:

2007-04-16  Seongbae Park <seongbae.park@gmail.com>

PR c++/29365

* cp/decl2.c (constrain_class_visibility):
Do not warn about the use of anonymous namespace in the main input file.

gcc/testsuite/ChangeLog:

2007-04-16  Seongbae Park <seongbae.park@gmail.com>

PR c++/29365
Testcase for c++ anonymous namespace warning

* g++.dg/warn/anonymous-namespace-1.C: New test
* g++.dg/warn/anonymous-namespace-1.h: New test

From-SVN: r123879
gcc/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/anonymous-namespace-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/anonymous-namespace-1.h [new file with mode: 0644]