Re: [PATCH] c++: Fix ICE with CONSTRUCTOR flags verification [PR93559]

2020-02-05 Thread Jason Merrill
On Wed, Feb 5, 2020 at 4:18 PM Marek Polacek wrote: > Since reshape_init_array_1 can now reuse a single constructor for > an array of non-aggregate type, we might run into a scenario where > we reuse a constructor with TREE_SIDE_EFFECTS. This broke this test > because we have something like { {

[PATCH] c++: Fix ICE with CONSTRUCTOR flags verification [PR93559]

2020-02-05 Thread Marek Polacek
Since reshape_init_array_1 can now reuse a single constructor for an array of non-aggregate type, we might run into a scenario where we reuse a constructor with TREE_SIDE_EFFECTS. This broke this test because we have something like { { expr } } and we try to reshape it, so we recurse on the inner