Internal compiler error 364

Alexandre Oliva oliva@dcc.unicamp.br
Tue Aug 18 18:14:00 GMT 1998


enge  <juergen@info-age.net> writes:

>      egcs-2.90.29 980515 (egcs-1.0.3 release)

> The compiler crashes, when dereferencing the null-pointer (return
> *NULL;)

Thanks for your report.  This is fixed in the latest egcs snapshot.
Given the following code snippet:

#include <cstddef>
int& foo() { return *NULL; }

it says:

test.cc: In function `int & foo()':
test.cc:2: argument of type `{unknown type} *' does not match `int & *'

-- 
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