summaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-05 20:50:57 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-05 20:50:57 +0000
commit17476aaca923cb17adb6b6ff8ee2b1de3715d8b1 (patch)
tree4c4f66836eb68f998569bb9974060b8fbfd2a0ac /gcc/stor-layout.c
parent8ce416a1655e109d29edc23dec21fb5869cfd4f9 (diff)
downloadgcc-17476aaca923cb17adb6b6ff8ee2b1de3715d8b1.tar.gz
PR c++/40975
* tree-inline.c (copy_tree_r): Use copy_statement_list. (copy_statement_list): Don't recurse. * stor-layout.c (copy_self_referential_tree_r): Don't allow STATEMENT_LIST. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173451 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 9ad0d0ae2f3..6d662377c6d 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -177,6 +177,9 @@ copy_self_referential_tree_r (tree *tp, int *walk_subtrees, void *data)
else if (code == SAVE_EXPR)
return error_mark_node;
+ else if (code == STATEMENT_LIST)
+ gcc_unreachable ();
+
return copy_tree_r (tp, walk_subtrees, data);
}