This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52806] "zero as null pointer constant" in C++98 mode
- 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: Sat, 31 Mar 2012 13:49:10 +0000
- Subject: [Bug c++/52806] "zero as null pointer constant" in C++98 mode
- Auto-submitted: auto-generated
- References: <bug-52806-4@http.gcc.gnu.org/bugzilla/>
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...