C++ definition of NULL

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Wed Mar 31 23:46:00 GMT 1999


> In the mean time, egcs would be better off being compliant and doing
> away with NULL unless the committee decides to overrule itself.

Most certainly. It seems that g++ has chosen a strict interpretation
of the standard, by using some magic symbol __null that happens to be
a null pointer constant. As Jason points out, even 1.1.1 behaves
compliant when called with -ansi (which means strict compliance).

Regards,
Martin



More information about the Gcc mailing list