On Mon, Mar 17, 2014 at 12:26 PM, Thiago Macieira <thi...@macieira.org> wrote: > > I can't find anything either, in either C11 or C++1y drafts.
So what is unquestionably undefined behavior is doing pointer arithmetic past the end of objects, and NULL obviously points to no object at all, so any pointer arithmetic on a NULL variable is obviously always "undefined behavior". So a language lawyer or a compiler might rape your pets if it sees it. I can't find it in myself to care, because quite frankly, I'd rather not deal with such a language lawyer or compiler anyway. Linus _______________________________________________ subsurface mailing list subsurface@hohndel.org http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface