https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69864
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Manuel López-Ibáñez from comment #4) > (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? The example in this testcase doesn't trigger a pedwarn, and accepting it is not a GNU extension. GCC's behaviour here is standard conforming. There are some other narrowing conversions that do get a pedwarn, but I'm not sure exactly which conditions trigger that. In any case, adding a "this is an extension" note to diagnostics should be its own PR.