This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Funny bug
- To: Benoit Poulot-Cazajous <poulot at sunchorus dot france dot sun dot com>
- Subject: Re: Funny bug
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 26 Feb 2000 16:21:32 -0300
- Cc: bug-gcc at gnu dot org
- References: <ln4sawsu5a.fsf@walhalla.agaha>
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