Internal compiler error 364

Alexandre Oliva
Tue Aug 18 18:14:00 GMT 1998

enge  <> 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: In function `int & foo()': argument of type `{unknown type} *' does not match `int & *'

Alexandre Oliva
Universidade Estadual de Campinas, SP, Brasil

More information about the Gcc-bugs mailing list