[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type
hariharan.gcc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 16 21:07:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752
hariharan.gcc at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hariharan.gcc at gmail dot com
--- Comment #27 from hariharan.gcc at gmail dot com ---
I encountered a similar problem with -Wconversion. This option is useless if it
would warn for cases like
short int i;
i += 5;
I concede Andrew's point about this being technically a place to warn, but in
practice, i would like for it to warn only when the target is a "smaller" than
any of the inputs.
More information about the Gcc-bugs
mailing list