* call.c (resolve_scoped_fn_name): Return error_mark_node for
erroneous cases.
From-SVN: r68786
+2003-07-01 Mark Mitchell <mark@codesourcery.com>
+
+ * call.c (resolve_scoped_fn_name): Return error_mark_node for
+ erroneous cases.
+
2003-07-01 Mark Mitchell <mark@codesourcery.com>
PR c++/11149
if (TREE_CODE (scope) == NAMESPACE_DECL)
fn = lookup_namespace_name (scope, name);
else if (!CLASS_TYPE_P (scope))
- error ("`%T' is not a class type", scope);
+ {
+ error ("`%T' is not a class type", scope);
+ return error_mark_node;
+ }
else
{
if (!TYPE_BEING_DEFINED (scope)