schmidt%blanche.ics.uci.edu@ORION.CF.UCI.EDU ("Douglas C. Schmidt") (10/24/88)
The following short program gets a fatal signal on the sparc running
gcc 1.28:
----------------------------------------
struct state {
struct state (*next)(struct state);
};
struct state foo(struct state Current)
{
return(Current);
}
main()
{
struct state state = { foo };
state_machine(state);
}
----------------------------------------
Here's the diagnostic:
gcc version 1.28
/usr/public/lib/gcc/gcc-cpp -v -I/cd/ua/schmidt/include/ -undef -D__GNU__ -D__GNUC__ -Dsparc -Dsun -Dunix state.c /tmp/cca18452.cpp
GNU CPP version 1.28
/usr/public/lib/gcc/gcc-cc1 /tmp/cca18452.cpp -quiet -dumpbase state.c -finline-functions -version -o /tmp/cca18452.s
GNU C version 1.28 (sparc) compiled by GNU C version 1.28.
/usr/public/gcc: Program cc1 got fatal signal 6.