[Bug libstdc++/35173] trivial long -> int implicit conversions

egallager at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 23 07:22:00 GMT 2019


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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
                 CC|                            |egallager at gcc dot gnu.org

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #2)
> Please, try with the new -Wconversion
> (http://gcc.gnu.org/wiki/NewWconversion), it shouldn't warn for values that
> fit (without changing sign) into the target type.
> 
> Nevertheless, perhaps it may be interesting to make Wconversion warn about
> some particular conversions in a special way.

Making -Wconversion more granular by splitting out a separate
-Wshorten-64-to-32 from it would make it easier to use by allowing users to
focus on a smaller subset of warnings at a time.


More information about the Gcc-bugs mailing list