http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59753

Vincent Lefèvre <vincent-gcc at vinc17 dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|WORKSFORME                  |---

--- Comment #2 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
-Wconversion is used to warn about possibly-suspicious valid code such as:

  unsigned ui = -1;

(see the gcc man page), not for overflows. At least there is an inconsistency
in the use of warnings. There is no reason why 65535 and 65536 should be
treated differently when assigned to a short: neither value is representable in
a short.

Reply via email to