https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116218
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> --- All versions I tried fail, although the diagnostic improved between 11 and 12: 11: ``` In file included from /usr/include/stdio.h:970, from /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/system.h:46, from /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/gengtype.cc:26: In function 'int printf(const char*, ...)', inlined from 'void dump_fileloc(int, fileloc)' at /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/gengtype.cc:4836:10, inlined from 'void dump_pair(int, pair_p)' at /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/gengtype.cc:4960:16, inlined from 'void dump_type_u_s(int, type_p)' at /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/gengtype.cc:4856:17, inlined from 'void dump_type(int, type_p)' at /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/gengtype.cc:4938:21: /usr/include/bits/stdio2.h:118:23: warning: '%s' directive argument is null [-Wformat-overflow=] 118 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```