[Bug c++/51625] -Wconversion should be on by default, or at least included in -Wall

pnf at podsnap dot com gcc-bugzilla@gcc.gnu.org
Mon Apr 30 09:12:00 GMT 2012


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

Peter Fraenkel <pnf at podsnap dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #6 from Peter Fraenkel <pnf at podsnap dot com> 2012-04-30 09:11:17 UTC ---
I, personally, would want to be warned on any implicit down-conversion between
native types. In cases where "down" is ambiguous (ie. with non-native classes),
the warning should be specially requested, as it could be generally annoying. 
I would actually argue that xxx(int)/fxxx(double) is such a minefield that it
deserves special case warnings.



More information about the Gcc-bugs mailing list