diff options
author | Jason Merrill <jason@redhat.com> | 2003-10-07 18:10:37 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-10-07 18:10:37 -0400 |
commit | 1b288fecdeb9929c72515dd2471e4c7bec264d2a (patch) | |
tree | af1cbd44fba3851b025f8df7b0c4bfa9e67fc748 /gcc/c-semantics.c | |
parent | ff4cc28b6483f5b34187750c96a77248771aa146 (diff) | |
download | gcc-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.c | 3 |
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)); } |