aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2003-10-07 18:10:37 -0400
committerJason Merrill <jason@gcc.gnu.org>2003-10-07 18:10:37 -0400
commit1b288fecdeb9929c72515dd2471e4c7bec264d2a (patch)
treeaf1cbd44fba3851b025f8df7b0c4bfa9e67fc748 /gcc/c-semantics.c
parentff4cc28b6483f5b34187750c96a77248771aa146 (diff)
downloadgcc-1b288fecdeb9929c72515dd2471e4c7bec264d2a.zip
gcc-1b288fecdeb9929c72515dd2471e4c7bec264d2a.tar.gz
gcc-1b288fecdeb9929c72515dd2471e4c7bec264d2a.tar.bz2
re PR c++/12519 (ICE tree check: in genrtl_cleanup_stmt, at c-semantics.c:761)
PR c++/12519 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if it isn't a decl. From-SVN: r72206
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index a9825c8..a3e1b45 100644
--- a/gcc/c-semantics.c
+++ b/gcc/c-semantics.c
@@ -758,7 +758,8 @@ void
genrtl_cleanup_stmt (tree t)
{
tree decl = CLEANUP_DECL (t);
- if (!decl || (DECL_SIZE (decl) && TREE_TYPE (decl) != error_mark_node))
+ if (!decl || !DECL_P (decl)
+ || (DECL_SIZE (decl) && TREE_TYPE (decl) != error_mark_node))
expand_decl_cleanup_eh (decl, CLEANUP_EXPR (t), CLEANUP_EH_ONLY (t));
}