[Bug c++/52718] -Wzero-as-null-pointer-constant: misleading location for 0 as default argument

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 29 10:25:00 GMT 2012


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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-29 10:17:49 UTC ---
I guess that first of all we want to fix this to warn at line #1 instead of #2:

void* fun(void* a = 0);
void* f2 = fun();



More information about the Gcc-bugs mailing list