This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52718] -Wzero-as-null-pointer-constant: misleading location for 0 as default argument
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Mar 2012 17:06:15 +0000
- Subject: [Bug c++/52718] -Wzero-as-null-pointer-constant: misleading location for 0 as default argument
- Auto-submitted: auto-generated
- References: <bug-52718-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52718
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-29 17:06:15 UTC ---
I see, thanks. Like we just error out at line #1 for:
void* fun(void* a = 1);
void* f2 = fun(nullptr);