http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50810
--- Comment #15 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-10-23 21:15:11 UTC --- Author: paolo Date: Sun Oct 23 21:15:08 2011 New Revision: 180349 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180349 Log: /c-family 2011-10-23 Paolo Carlini <paolo.carl...@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carl...@oracle.com> PR c++/50810 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default Wnarrowing for C++0x and C++98. * c.opt ([Wnarrowing]): Update. /cp 2011-10-23 Paolo Carlini <paolo.carl...@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carl...@oracle.com> PR c++/50810 * typeck2.c (check_narrowing): Adjust OPT_Wnarrowing diagnostics. (digest_init_r): Call check_narrowing irrespective of the C++ dialect. * decl.c (check_initializer): Likewise. * semantics.c (finish_compound_literal): Likewise. /testsuite 2011-10-23 Paolo Carlini <paolo.carl...@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carl...@oracle.com> PR c++/50810 * g++.dg/cpp0x/warn_cxx0x2.C: New. * g++.dg/cpp0x/warn_cxx0x3.C: Likewise. 2011-10-23 Paolo Carlini <paolo.carl...@oracle.com> PR c++/50841 Revert: 2011-10-23 Paolo Carlini <paolo.carl...@oracle.com> PR c++/50810 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update. Modified: trunk/gcc/ChangeLog