This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix tree-inline.c INDIRECT_REF handling (PR c++/84767)
- From: Jeff Law <law at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>, Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 9 Mar 2018 12:09:59 -0700
- Subject: Re: [PATCH] Fix tree-inline.c INDIRECT_REF handling (PR c++/84767)
- Authentication-results: sourceware.org; auth=none
- References: <20180309180614.GG8577@tucnak>
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 <jakub@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