This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r185984 - in /branches/gcc-4_7-branch/gcc: cp/C...
- From: paolo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 29 Mar 2012 23:21:03 -0000
- Subject: r185984 - in /branches/gcc-4_7-branch/gcc: cp/C...
Author: paolo
Date: Thu Mar 29 23:21:02 2012
New Revision: 185984
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185984
Log:
/cp
2012-03-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52718
* decl.c (check_default_argument): With -Wzero-as-null-pointer-constant
warn for a zero as null pointer constant default argument.
/testsuite
2012-03-29 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52718
* g++.dg/warn/Wzero-as-null-pointer-constant-5.C: New.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-5.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/decl.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog