On 13.08.2025 21:12, nicola.vetr...@gmail.com wrote: > From: Nicola Vetrini <nicola.vetr...@gmail.com> > > The toolchain baseline for GCC is 5.1, which supports _Static_assert > in c99 mode
Hmm, interesting. I can confirm the behavior, but isn't this a bug? There's no _Static_assert() in plain C99. Respective notes in the "Changes, New Features, and Fixes" are also saying otherwise: https://gcc.gnu.org/gcc-4.6/changes.html has "This support may be selected with -std=c1x, or -std=gnu1x for C1X with GNU extensions." Nothing new is said in any of the respective documents up to the release of gcc5. (In fact, the compiler accepts the construct even with -std=c89.) Our misra/C-language-toolchain.rst refers to a section in gcc12's doc which doesn't mention _Static_assert() at all, afaics. Jan