This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/85861] g++ -Wconversion misses int to size_t


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

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

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jonny Grant from comment #2)
> Thank you for your replies.
> 
> I tested on 64bit ubuntu. But yes with -Wsign-conversion I now see the
> warnings/errors.
> 
> Could it be enabled by default? to match C behaviour visible in GCC.

I think you mean by -Wconversion, not by default, right?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]