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++/52718] -Wzero-as-null-pointer-constant: misleading location for 0 as default argument


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

--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-03-29 22:45:56 UTC ---
Author: paolo
Date: Thu Mar 29 22:45:46 2012
New Revision: 185983

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185983
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:
    trunk/gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


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