https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77513
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #13) > 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. And this is a regression, because 4.8 silently accepts this code in C++98 mode, whereas 4.7 warns about it as expected: null.C:3:15: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]