bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined-behavior obstack.c:139


From: Marc Nieper-Wißkirchen
Subject: Re: undefined-behavior obstack.c:139
Date: Fri, 1 Dec 2023 20:08:45 +0100

Am Fr., 1. Dez. 2023 um 19:42 Uhr schrieb Bruno Haible <bruno@clisp.org>:
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.

[...]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]