https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING Last reconfirmed| |2021-12-10 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- My bet it is a bug in the stddef.h header file. Can you do the following: x86_64-w64-mingw32-g++ -mabi=sysv -c tmp.cpp -save-temps -g3 and attach the preprocessed source?