aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-03-09 20:12:29 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-03-09 20:12:29 +0100
commit9d9a9a90ce25d3b2748df78e4ae05e0c74d0b671 (patch)
tree8ba818bf34faf26a1cda12cf3f6226b161225e79 /gcc/tree-inline.c
parent8286793a2b050a9c51501b0b3737ff73c71d189d (diff)
downloadgcc-9d9a9a90ce25d3b2748df78e4ae05e0c74d0b671.zip
gcc-9d9a9a90ce25d3b2748df78e4ae05e0c74d0b671.tar.gz
gcc-9d9a9a90ce25d3b2748df78e4ae05e0c74d0b671.tar.bz2
re PR c++/84767 (ICE with pointer to VLA)
PR c++/84767 * tree-inline.c (copy_tree_body_r): For INDIRECT_REF of a remapped decl, use remap_type if we want to use the type. * g++.dg/ext/vla18.C: New test. From-SVN: r258395
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 811829e..5a0a252 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1192,6 +1192,7 @@ copy_tree_body_r (tree *tp, int *walk_subtrees, void *data)
*tp = gimple_fold_indirect_ref (ptr);
if (! *tp)
{
+ type = remap_type (type, id);
if (TREE_CODE (ptr) == ADDR_EXPR)
{
*tp