decl.c (grokvardecl): Don't exempt anonymous types from having linkage for variables...
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 23 Feb 2005 18:57:43 +0000 (18:57 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 23 Feb 2005 18:57:43 +0000 (18:57 +0000)
commit6b2117468998909065f7075541593af7ee9d8268
tree5bb57455330367506d430b09ceab241ae587b4ae
parent61961eff56844e37bf13a73b489292902a13ffdd
decl.c (grokvardecl): Don't exempt anonymous types from having linkage for variables that have...

gcc/cp/ChangeLog:
* decl.c (grokvardecl): Don't exempt anonymous types from having
linkage for variables that have linkage other than "C".
gcc/testsuite/ChangeLog:
* g++.dg/lookup/anon2.C: Don't let access checks make it look like
the test passes.
* g++.dg/other/anon3.C: Accept a warning.

From-SVN: r95462
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/anon2.C
gcc/testsuite/g++.dg/other/anon3.C