https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121545
Bug ID: 121545 Summary: _Static_assert() supported even in C89 and C99 modes Product: gcc Version: 14.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jbeulich at suse dot com Target Milestone: --- The construct was introduced in C11, and hence for earlier standards it should only be supported as an extension. With -std=c89 and -std=c99 I therefore would expect its uses to cause diagnostics.