This is the mail archive of the gcc@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]

Re: Can offsetting a non-null pointer result in a null one?


On Mon, 20 Aug 2018 at 09:41, Jonathan Wakely wrote:
> C++17 has similar wording in 8.7 [expr.add] paragraph 4.

N.B. C++ adds a special case for adding the value 0 to null pointers,
so that it's well-defined (paragraph 7).


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