Re: [PATCH] c++: Fix up floating point complex handling in build_zero_init_1 [PR98353]

2020-12-22 Thread Jason Merrill via Gcc-patches
On 12/21/20 6:10 PM, Jakub Jelinek wrote: Hi! While the gimplifier patch I've just committed fixed an ICE, in some cases like on the committed testcase cp folding doesn't happen after build_zero_init_1 because it is called already during gimplification. Not exactly sure why we just don't call b

[PATCH] c++: Fix up floating point complex handling in build_zero_init_1 [PR98353]

2020-12-21 Thread Jakub Jelinek via Gcc-patches
Hi! While the gimplifier patch I've just committed fixed an ICE, in some cases like on the committed testcase cp folding doesn't happen after build_zero_init_1 because it is called already during gimplification. Not exactly sure why we just don't call build_zero_cst (type); for the scalar types,