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++/60760] arithmetic on null pointers should not be allowed in constant expressions


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.

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