https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69864
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org Resolution|WONTFIX |DUPLICATE --- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #3) > Or use -pedantic-errors. I find it a bit ironic that Clang does inform the user when something is accepted as a GNU extension, but *GNU* GCC does not clarify this. Perhaps the pedwarn below would be clearer with something like? warning: narrowing conversion of '(double)u' from 'double' to 'int' inside { } is a GNU extension Or even something fancier: warning: narrowing conversion of '(double)u' from 'double' to 'int' inside { } (error in c++11, allowed by gnu++11) or warning: (GNU extension to c++11) narrowing conversion of '(double)u' from 'double' to 'int' inside { } It would be not too difficult to automatically print the current base standard and the corresponding gnu standard on every pedwarn. *** This bug has been marked as a duplicate of bug 55783 ***