re PR c++/15049 ([DR 278/132/216/338/389/319] global variables with anonymous types...
authorMatt Austern <austern@apple.com>
Tue, 21 Sep 2004 17:24:44 +0000 (17:24 +0000)
committerMatt Austern <austern@gcc.gnu.org>
Tue, 21 Sep 2004 17:24:44 +0000 (17:24 +0000)
commit6bdb98d1b015ab102211519a15df964dafbad19b
treeb2e9cdb17584c9a96c270f5e1bcf17953905af86
parent34f87940b2ec98215e6b366d33d404144ecdbef5
re PR c++/15049 ([DR 278/132/216/338/389/319] global variables with anonymous types are legal)

PR c++/15049
* cp/decl.c (grokvardecl): Accept declarations of global variables
using anonymous types.
* testsuite/g++.dg/other/anon3.C: New.

From-SVN: r87814
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/anon3.C [new file with mode: 0644]