Why 0 is not int* ? Error with sample of Bjarne Book
Alexandre Oliva
oliva@dcc.unicamp.br
Fri May 8 10:00:00 GMT 1998
Khimenko Victor <khim@sch57.msk.ru> writes:
> Yes. !1 is false but still false could be evaluted to 0.
You're right, `!1' could be promoted to (int)0, then converted to any
pointer type, since it is a null pointer constant. This should be
accepted, and egcs is in error. Too bad :-(
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list