C++ definition of NULL

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Wed Mar 3 01:27:00 GMT 1999


> Yes, possibly selecting it and issuing a warning.  If you look at
> the behavior with one function, it will select it and issue a
> warning, but when it has to deal with overloaded functions it fails
> completely.  Bug?

Yes, it looks like this is a bug in egcs 1.1.1. I haven't checked
whether the bug is still present in 1.1.2, however, it appears it is
fixed in the current development snapshots (egcs-2.93.10).

>From that, it appears you have a number of options:

a) Replace all occurences of NULL with 0. This is IMHO the Right Thing
   (tm), because the NULL symbol is an ugly hack, and just there for
   backwards compatibility.

b) Use a more current egcs release. You've indicated that you need
   production quality, so this is probably not an option.

c) Change your installation of egcs to define NULL in whatever way you
   think is appropriate.

Regards,
Martin


More information about the Gcc mailing list