This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix tree-inline.c INDIRECT_REF handling (PR c++/84767)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]