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: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Apr 2014 18:08:03 +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 #3 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> ---
(In reply to Jonathan Wakely from comment #2)
> Yes, we rely on that in initializer_list<>::end(), and clang rejects that.
<nod>
> I discussed that case with Jason and we think [expr.add] could be clarified
> - do you have an existing issue number related to that?
I haven't - I myself found the existing wording always clear in that regard.