Re: [PATCH] c++: Fix zero initialization of flexible array members [PR99033]

2021-02-11 Thread Jason Merrill via Gcc-patches
On 2/11/21 3:50 AM, Jakub Jelinek wrote: Hi! array_type_nelts returns error_mark_node for type of flexible array members and build_zero_init_1 was placing an error_mark_node into the CONSTRUCTOR, on which e.g. varasm ICEs. I think there is nothing erroneous on zero initialization of flexible ar

[PATCH] c++: Fix zero initialization of flexible array members [PR99033]

2021-02-11 Thread Jakub Jelinek via Gcc-patches
Hi! array_type_nelts returns error_mark_node for type of flexible array members and build_zero_init_1 was placing an error_mark_node into the CONSTRUCTOR, on which e.g. varasm ICEs. I think there is nothing erroneous on zero initialization of flexible array members though, such arrays should simp