On 03/09/2018 11:06 AM, Jakub Jelinek wrote:
> Hi!
>
> On the following testcase we ICE because when cloning the ctor using
> tree-inline.c infrastructure we don't remap the type of INDIRECT_REF,
> which needs to be remapped if it a variable length type, otherwise we
> refer to the parameters of the original ctor rather than of the base
> or complete ctor.
>
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> trunk?
>
> 2018-03-09 Jakub Jelinek <ja...@redhat.com>
>
> 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.
OK.
jeff