Re: [PATCH] c++: partially initialized constexpr array [PR99699]

2021-04-15 Thread Jason Merrill via Gcc-patches
On 4/15/21 3:51 PM, Patrick Palka wrote: Here, reduced_constant_expression_p is incorrectly returning true for a partially initialized array CONSTRUCTOR, because when the CONSTRUCTOR_NO_CLEARING flag is set the predicate doesn't check that every array element is initialized by the CONSTRUCTOR, it

[PATCH] c++: partially initialized constexpr array [PR99699]

2021-04-15 Thread Patrick Palka via Gcc-patches
Here, reduced_constant_expression_p is incorrectly returning true for a partially initialized array CONSTRUCTOR, because when the CONSTRUCTOR_NO_CLEARING flag is set the predicate doesn't check that every array element is initialized by the CONSTRUCTOR, it just checks that every initializer within