]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/class.c
cp-tree.h (DECL_VAR_MARKED_P): Remove.
authorMark Mitchell <mark@codesourcery.com>
Fri, 15 Jun 2007 16:58:29 +0000 (16:58 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 15 Jun 2007 16:58:29 +0000 (16:58 +0000)
commit555551c24b5159164cef489982455d2012561f8b
treeb580e5336b6a72d59b683347c5293fe4228f6485
parent2f119dcccd49dcb0c8b72b4048712bdbc0e3988e
cp-tree.h (DECL_VAR_MARKED_P): Remove.

* cp-tree.h (DECL_VAR_MARKED_P): Remove.
(DECL_ANON_UNION_VAR_P): New macro.
* class.c (fixed_type_or_null): Tidy.  Use a hash table, rather
than DECL_VAR_MARKED_P, to keep track of which variables we have
seen.
* decl.c (redeclaration_error_message): Complain about redeclaring
anonymous union members at namespace scope.
* decl2.c (build_anon_union_vars): Set DECL_ANON_UNION_VAR_P.
* g++.dg/lookup/anon6.C: New test.

From-SVN: r125745
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/anon6.C [new file with mode: 0644]