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
This commit is contained in:
parent
0108ae51e9
commit
28570f7ec6
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue