https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119400
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- mingw defaults to -fms-extensions. If you don't want these extensions then use -fno-ms-extensions. Note the definition of the extensions has changed over time and GCC has not kept up to date with them; looks to be 20 years out of date now.