This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53301] [4.8 Regression] Spurious -Wzero-as-null-pointer-constant with reference arguments


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

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-05-10 21:06:52 UTC ---
Author: paolo
Date: Thu May 10 21:06:42 2012
New Revision: 187378

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187378
Log:
/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.

Added:
   
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-6.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]