PR c++/28114
* name-lookup.c (pushtag): Return if we have error_mark_node.
From-SVN: r115397
+2006-07-12 Steve Ellcey <sje@cup.hp.com>
+
+ PR c++/28114
+ * name-lookup.c (pushtag): Return if we have error_mark_node.
+
2006-07-11 Lee Millward <lee.millward@gmail.com>
PR c++/28051
pushdecl_class_level (decl);
}
else if (b->kind != sk_template_parms)
- decl = pushdecl_with_scope (decl, b);
+ {
+ decl = pushdecl_with_scope (decl, b);
+ if (decl == error_mark_node)
+ POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, decl);
+ }
/* FIXME what if it gets a name from typedef? */
if (ANON_AGGRNAME_P (name))