http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56373
--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2013-02-20 09:02:41 UTC --- Author: paolo Date: Wed Feb 20 09:02:35 2013 New Revision: 196165 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196165 Log: /cp 2013-02-20 Paolo Carlini <paolo.carl...@oracle.com> PR c++/56373 * tree.c (maybe_warn_zero_as_null_pointer_constant): Add. * cvt.c (ocp_convert): Use the latter. (cp_convert_to_pointer): Likewise. * decl.c (check_default_argument): Likewise. * typeck.c (cp_build_binary_op): Likewise. * cp-tree.h (maybe_warn_zero_as_null_pointer_constant): Declare. /testsuite 2013-02-20 Paolo Carlini <paolo.carl...@oracle.com> PR c++/56373 * g++.dg/cpp0x/Wzero-as-null-pointer-constant-2.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/Wzero-as-null-pointer-constant-2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/cvt.c trunk/gcc/cp/decl.c trunk/gcc/cp/tree.c trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog