Funny bug
Alexandre Oliva
oliva@lsd.ic.unicamp.br
Sat Feb 26 11:21:00 GMT 2000
On Feb 25, 2000, Benoit Poulot-Cazajous <poulot@sunchorus.france.sun.com> wrote:
> #include <stdio.h>
> extern void malloc(size_t size);
> toto() { malloc(100); }
> gcc: Internal compiler error: program cc1 got fatal signal 11
Thanks for your bug report. I very interesting one, indeed.
> PS: Just in case : Yes, I know that my program is stupid...
It is arguably invalid too, since it replaces a hidden, built-in
declaration of a standard library function with an incompatible
declaration. That's a likely explanation for the crash. Not that it
doesn't expose a bug in the compiler, since it should never crash like
that.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaraná
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
More information about the Gcc-bugs
mailing list