Re: [PATCH][C++] Fix PR84281

2018-02-11 Thread Richard Biener
On Fri, 9 Feb 2018, Jason Merrill wrote: > OK. Failed to notice that vec_safe_reserve reserves additional space so applied as follows restricting it to the very first iteration. Richard. 2018-02-12 Richard Biener PR c++/84281 * constexpr.c

Re: [PATCH][C++] Fix PR84281

2018-02-09 Thread Jason Merrill
OK. On Fri, Feb 9, 2018 at 7:44 AM, Richard Biener wrote: > > The following patch optimizes the equal element case of > cxx_eval_vec_init_1 to use a RANGE_EXPR in the built CONSTRUCTOR > instead of repeating the same element over and over. This > cuts down memory use of the

[PATCH][C++] Fix PR84281

2018-02-09 Thread Richard Biener
The following patch optimizes the equal element case of cxx_eval_vec_init_1 to use a RANGE_EXPR in the built CONSTRUCTOR instead of repeating the same element over and over. This cuts down memory use of the invalid testcase in the PR from tens of GB to nothing and makes us rejct it