https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77513
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2021-08-27 00:00:00 |2021-11-21 --- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> --- An intereting case from PR 103347 where the pedwarn about the NSDMI is suppressed because GCC thinks the initializer is in a system header: #include <cstddef> struct test { void *x = NULL; //invalid in C++03 mode }; int main() {} This should be rejected with -pedantic-errors, but g++ is silent unless you also add -Wsystem-headers.