This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60760] arithmetic on null pointers should not be allowed in constant expressions
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Apr 2014 17:53:56 +0000
- Subject: [Bug c++/60760] arithmetic on null pointers should not be allowed in constant expressions
- Auto-submitted: auto-generated
- References: <bug-60760-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60760
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes, we rely on that in initializer_list<>::end(), and clang rejects that.
I discussed that case with Jason and we think [expr.add] could be clarified -
do you have an existing issue number related to that?