https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103347
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > That is GCC does warning about the following case: > struct test { > int x = 0; > }; > int main() {} And you get an error with -pedantic-errors