C++ definition of NULL
Jason Merrill
jason@cygnus.com
Wed Mar 31 23:46:00 GMT 1999
>>>>> Doug Semler <doug@seaspace.com> writes:
> A Null pointer constant is a constant rvalue integral *expression* which
> evaluates to 0.
> The Null pointer value (the value of the expression) can be converted to a
> cv-qualified type.
> The conversion from the expression is one
> step. So any constant integral rvalue of 0 can be a null pointer constant.
> So the way I read the standard, the type of a null pointer constant is
> a pointer type of pointer to destination's cv-qualified type.
No. How would you write that? The type of a null pointer constant is the
type of the integral expression.
Jason
More information about the Gcc
mailing list