[Bug c++/108538] unexpected -Wnarrowing errors in -fpermissive mode

stsp at users dot sourceforge.net gcc-bugzilla@gcc.gnu.org
Wed Jan 25 12:35:43 GMT 2023


--- Comment #2 from Stas Sergeev <stsp at users dot sourceforge.net> ---
(In reply to Andreas Schwab from comment #1)
> It depends on the selected C++ standard.  C++11 does not allow narrowing
> conversions unconditionally.

Yes, I am not disputing that.
But I used -fpermissive mode to
compile the mix of c/c++.
-fpermissive downgrades many C++
errors to a warning, eating most
of the regular C. So my question
here is explicitly about -fpermissive
mode, I think it should downgrade
-Wnarrowing back into the warning.

More information about the Gcc-bugs mailing list