diff options
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/semantics.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ec50f9e..b3a5dfd 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-11-24 Nathan Sidwell <nathan@codesourcery.com> + + * semantics.c (finish_id_expr): If type is error_mark, return + error_mark. + 2000-11-23 Nathan Sidwell <nathan@codesourcery.com> * pt.c (lookup_template_class): Simplify loop exit constructs. diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index b372fdd..8d22ce2 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -1534,6 +1534,8 @@ finish_id_expr (expr) if (TREE_CODE (expr) == IDENTIFIER_NODE) expr = do_identifier (expr, 1, NULL_TREE); + if (TREE_TYPE (expr) == error_mark_node) + expr = error_mark_node; return expr; } |