re PR c++/53301 (Spurious -Wzero-as-null-pointer-constant with reference arguments)
commite5f13bf49ae0c4fd0ee897c0614ad8631afdb407
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 10 May 2012 21:06:05 +0000 (10 21:06 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 10 May 2012 21:06:05 +0000 (10 21:06 +0000)
tree879b58340d247a31752be0bc6100fc51e611dffb
parent586518549e7a0ca2b52c47a8c52074f78ee0b615
re PR c++/53301 (Spurious -Wzero-as-null-pointer-constant with reference arguments)

/cp
2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53301
* decl.c (check_default_argument): Fix typo (POINTER_TYPE_P
instead of TYPE_PTR_P) in zero-as-null-pointer-constant warning.

/testsuite
2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53301
* g++.dg/warn/Wzero-as-null-pointer-constant-6.C: New.

From-SVN: r187377
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-6.C [new file with mode: 0644]