https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84767
--- Comment #8 from Jakub Jelinek ---
Author: jakub
Date: Mon Jun 25 17:29:17 2018
New Revision: 262072
URL: https://gcc.gnu.org/viewcvs?rev=262072&root=gcc&view=rev
Log:
Backported from mainline
2018-03-09 Jakub Jelinek
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.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/ext/vla18.C
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/tree-inline.c