re PR c++/84767 (ICE with pointer to VLA)
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Mar 2018 19:12:29 +0000 (20:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 9 Mar 2018 19:12:29 +0000 (20:12 +0100)
commit9d9a9a90ce25d3b2748df78e4ae05e0c74d0b671
tree8ba818bf34faf26a1cda12cf3f6226b161225e79
parent8286793a2b050a9c51501b0b3737ff73c71d189d
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
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/vla18.C [new file with mode: 0644]
gcc/tree-inline.c