https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118283
--- Comment #4 from Brecht Sanders <brechtsanders at users dot sourceforge.net> --- Thanks for clarifying. So it seems this is by design and there is nothing to fix in GCC. Unfortunately that means a lot of packages will need to fix their source if they still want them to build using the C23 standard.