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 error that the initializer is invalid. Previously if it was empty, > we'd emit another error that scalar is being initialized by empty > initializer (not really correct), but now we instead just try to > build_zero_cst for the FUNCTION_TYPE and ICE on it. > > The following patch just emits the same diagnostics for the empty > initializers as we emit for the non-empty ones. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
OK. -- Joseph S. Myers jos...@codesourcery.com