r125745 - in /trunk/gcc: cp/ChangeLog cp/class....
mmitchel@gcc.gnu.org
mmitchel@gcc.gnu.org
Fri Jun 15 16:58:00 GMT 2007
Author: mmitchel
Date: Fri Jun 15 16:58:29 2007
New Revision: 125745
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125745
Log:
* 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.
Added:
trunk/gcc/testsuite/g++.dg/lookup/anon6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/decl2.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list