Re: [PATCH] c: Fix up error-recovery on functions initialized as variables [PR109412]

2023-04-24 Thread Joseph Myers
On Fri, 14 Apr 2023, Jakub Jelinek via Gcc-patches wrote: > Hi! > > The change to allow empty initializers in C broke error-recovery on the > following testcase. We are emitting function %qD is initialized like a > variable error early; if the initializer is non-empty, we just emit > another

[PATCH] c: Fix up error-recovery on functions initialized as variables [PR109412]

2023-04-14 Thread Jakub Jelinek via Gcc-patches
Hi! The change to allow empty initializers in C broke error-recovery on the following testcase. We are emitting function %qD is initialized like a variable error early; if the initializer is non-empty, we just emit another error that the initializer is invalid. Previously if it was empty, we'd