diff options
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/call.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e9180bf..c2d4545 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,10 @@ 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. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 0f4d360..6aab2ad 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -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) |
