Re: [PATCH] c: Fix up error-recovery on non-empty VLA initializers [PR109409]

2023-04-24 Thread Joseph Myers
On Fri, 14 Apr 2023, Jakub Jelinek via Gcc-patches wrote: > Hi! > > On the following testcase we ICE, because after we emit the > variable-sized object may not be initialized except with an empty initializer > error we don't really reset the initializer to error_mark_node and then at > -Wformat

[PATCH] c: Fix up error-recovery on non-empty VLA initializers [PR109409]

2023-04-14 Thread Jakub Jelinek via Gcc-patches
Hi! On the following testcase we ICE, because after we emit the variable-sized object may not be initialized except with an empty initializer error we don't really reset the initializer to error_mark_node and then at -Wformat checking time we ICE on seeing STRING_CST initializer for a VLA. The