rang@cpsin3.cps.msu.edu (Anton Rang) (02/16/89)
The following program causes GCC 1.33 (Sun-3/280, SunOS 3.4) to abort with fatal error 11. Not using the '&' operator clears up the problem, and so does assigning the value into a simple variable instead of an array. int get_string() { char x; char tmp[2]; inkey(&x); tmp[0] = x; } -------------------- cpsin3% gcc -v -O t.c gcc version 1.33 /usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__OPTIMIZE__ -D__HAVE_68881__ -Dmc68020 t.c /tmp/cca04638.cpp GNU CPP version 1.33 /usr/local/lib/gcc-cc1 /tmp/cca04638.cpp -quiet -dumpbase t.c -O -version -o /tmp/cca04638.s GNU C version 1.33 (68k, MIT syntax) compiled by GNU C version 1.33. gcc: Program cc1 got fatal signal 11. +---------------------------+------------------------+----------------------+ | Anton Rang (grad student) | Things could be worse. | "Do worry...be SAD!" | | Michigan State University | rang@cpswh.cps.msu.edu | | +---------------------------+------------------------+----------------------+