diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-11 06:55:38 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-11 06:55:38 +0000 |
commit | 1ccba7b77c3b11868bb0cf627bd3fb465acded6f (patch) | |
tree | 7c7a5c7bc22102fff02d7e4021d1801f36e83a8d /gcc/attribs.c | |
parent | 83901169842c2ca53a87e33034e376cf27f442bf (diff) | |
download | gcc-1ccba7b77c3b11868bb0cf627bd3fb465acded6f.tar.gz |
PR c/35744
* attribs.c (decl_attributes): Return early on errorneous node.
* gcc.dg/attr-error-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134193 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/attribs.c')
-rw-r--r-- | gcc/attribs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c index 767035b5dd1..65233de9e55 100644 --- a/gcc/attribs.c +++ b/gcc/attribs.c @@ -225,6 +225,9 @@ decl_attributes (tree *node, tree attributes, int flags) tree a; tree returned_attrs = NULL_TREE; + if (TREE_TYPE (*node) == error_mark_node) + return NULL_TREE; + if (!attributes_initialized) init_attributes (); |