diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a9c8dd03e91..da39c84402e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2005-07-27 Devang Patel + + * name-lookup.c (pushtag): Do no set DECL_IGNORED_P bit. + 2005-07-25 Ian Lance Taylor * ptree.c (cxx_print_identifier): Print a leading space if the diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 4f64fa03684..3d49f905660 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -4716,10 +4716,6 @@ pushtag (tree name, tree type, tag_scope scope) if (d == error_mark_node) POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, error_mark_node); - /* FIXME what if it gets a name from typedef? */ - if (ANON_AGGRNAME_P (name)) - DECL_IGNORED_P (d) = 1; - TYPE_CONTEXT (type) = DECL_CONTEXT (d); /* If this is a local class, keep track of it. We need this