diff options
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 251d21a..28ee033 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> + + * decl.c (grokdeclarator): Return error_mark_node instead of NULL_TREE. + 2006-05-21 Mark Mitchell <mark@codesourcery.com> PR c++/27210 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 72727db..95acc85 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -8211,7 +8211,7 @@ grokdeclarator (const cp_declarator *declarator, sfk, funcdef_flag, template_count, in_namespace, attrlist); if (decl == NULL_TREE) - return decl; + return error_mark_node; #if 0 /* This clobbers the attrs stored in `decl' from `attrlist'. */ /* The decl and setting of decl_attr is also turned off. */ |