https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114266

--- Comment #3 from Daniel Lundin <daniel.lundin.mail at gmail dot com> ---
(In reply to Joseph S. Myers from comment #2)
> The relevant constraint here is "An array of unknown size shall not be
> initialized by an empty initializer.".

Indeed! I didn't realize it was also a constraint (C23 6.7.10). That probably
means that a diagnostic warning should always be given and not just in
-pedantic mode.

Reply via email to