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++/52806] "zero as null pointer constant" in C++98 mode


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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-31 13:49:10 UTC ---
Note, even in the *specific* case at issue, maybe the user really wanted p1
statically initialized, or wants an early function call, or something like:

  typedef int* pt;
  int* p1 = pt();

(where pt will be std::nullptr_t in C++11 mode), who knows...


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