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 #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();


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