Commit 28570f7e by Mark Mitchell Committed by Mark Mitchell

call.c (resolve_scoped_fn_name): Return error_mark_node for erroneous cases.

	* call.c (resolve_scoped_fn_name): Return error_mark_node for
	erroneous cases.

From-SVN: r68786
parent 0108ae51
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
* call.c (resolve_scoped_fn_name): Check that the qualifying scope
is a class type.
......
......@@ -2766,7 +2766,10 @@ resolve_scoped_fn_name (tree scope, tree name)
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment