https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96452

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Use -pedantic-errors to get the error message instead.

Or -Werror=narrowing

> We allow this extension by default.

It's not an extension, it's standard-conforming behaviour.

Reply via email to