diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-07-01 18:48:36 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-07-01 18:48:36 +0000 |
commit | 28570f7ec6c78e415c43bcbfb74f1be3efece311 (patch) | |
tree | ca6ce76c1076cea74e8fa1e40c047d780be099d5 /gcc/cp/call.c | |
parent | 0108ae51e9fc5d570337a3a1f7a4a93b82441307 (diff) | |
download | gcc-28570f7ec6c78e415c43bcbfb74f1be3efece311.zip gcc-28570f7ec6c78e415c43bcbfb74f1be3efece311.tar.gz gcc-28570f7ec6c78e415c43bcbfb74f1be3efece311.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) |