https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80535
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-08-29 CC| |egallager at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> --- Confirmed. Note that GCC is available for non-POSIX platforms though. There should really be some sort of -posix-std=yyyy flag to mirror the -std=cyy flag, i.e., to tell GCC which version of the POSIX standard to conform to, as opposed to which version of the C standard. Maybe also recognize the POSIXLY_CORRECT environment variable that other GNU programs use? Still, when GCC does conform to POSIX, I agree that it should warn here.