[Bug c++/50810] c++0x-compat does not warn about narrowing conversions

jason at redhat dot com gcc-bugzilla@gcc.gnu.org
Sun Oct 23 02:08:00 GMT 2011


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

--- Comment #9 from Jason Merrill <jason at redhat dot com> 2011-10-23 02:06:56 UTC ---
I think that makes sense, yes. People can always specify -Wno-narrowing if they
don't want it.

"paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org> wrote:

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|paolo.carlini at oracle dot |
                   |com                         |

--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-23
00:36:25 UTC ---
I have the patch essentially ready. My only remaining doubt is that currently
-Wc++0x-compat is part of -Wall, and -Wnarrowing would become also part of
-Wall. Are we sure about this?



More information about the Gcc-bugs mailing list