Re: undefined-behavior obstack.c:139

Marc Nieper-Wißkirchen <[email protected]> Fri, 1 Dec 2023 20:08:45 +0100
Newsgroups gmane.comp.lib.gnulib.bugs,gmane.comp.gnu.m4.bugs
Message-ID <CAEYrNrRq7QLYBJUDvES=qBGie=e61EhBpHC5t5u+vFXJtjL8rQ@mail.gmail.com>
Am Fr., 1. Dez. 2023 um 19:42 Uhr schrieb Bruno Haible <[email protected]>:

> Marc Nieper-Wißkirchen wrote:
> > By 6.5.6 "Additive Operators":
> >
> > (2) "... one operator shall be a pointer to a complete object type..."
> >
> > NULL, which is a null pointer constant, is not necessarily a pointer to a
> > complete object type.
>
> In my test program, I used a variable of type 'char *'. Which is a pointer
> to a complete object type.
>

Yes, I was referring to the expression "NULL + 0" you mentioned.

[...]