[C++ PATCH] Reuse certain cxx_eval_constant_expression results in cxx_eval_vec_init_1 (PR c++/70001)

Jakub Jelinek jakub@redhat.com
Thu Mar 10 20:33:00 GMT 2016


On Thu, Mar 10, 2016 at 07:39:57PM +0100, Jakub Jelinek wrote:
> Is this also ok, if it passes bootstrap/regtest?
> 
> 2016-03-10  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/70001
> 	* constexpr.c (cxx_eval_vec_init_1): Reuse CONSTRUCTOR initializers
> 	for 1..max even for multi-dimensional arrays, and reuse not just
> 	eltinit itself, but surrounding subobject CONSTRUCTOR too.
> 
> 	* g++.dg/cpp0x/constexpr-70001-4.C: New test.

Successfully bootstrapped/regtested on x86_64-linux and i686-linux.

	Jakub



More information about the Gcc-patches mailing list