Funny bug

Benoit Poulot-Cazajous poulot@sunchorus.france.sun.com
Fri Feb 25 16:07:00 GMT 2000


$ cat a.c
#include <stdio.h>

extern void malloc(size_t size); 

toto()
{
    malloc(100);
}

$ gcc -c a.c
gcc: Internal compiler error: program cc1 got fatal signal 11

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)

This bug has been first detected with egcs-1.1.2 on NT, and is still
present in gcc-2.95.2 on Linux. It looks quite generic.

  -- Benoit

PS: Just in case : Yes, I know that my program is stupid...


More information about the Gcc-bugs mailing list