aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2006-05-22 16:45:50 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2006-05-22 16:45:50 +0000
commitba5719d9cd094d0f737bef6ee396387f65ff9195 (patch)
treebe2cd0952e32c3d471ac428df7dc2a1ace19b521 /gcc/cp
parent1ff3ac02b534f8fb29e9eb607cc36ad6fd84746b (diff)
downloadgcc-ba5719d9cd094d0f737bef6ee396387f65ff9195.zip
gcc-ba5719d9cd094d0f737bef6ee396387f65ff9195.tar.gz
gcc-ba5719d9cd094d0f737bef6ee396387f65ff9195.tar.bz2
* decl.c (grokdeclarator): Return error_mark_node instead of NULL_TREE.
From-SVN: r113984
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl.c2
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. */