[gnu.gcc.bug] gcc 1.33 bug on Sun 3/SunOS 4.0.1

ostebee@CIS.OHIO-STATE.EDU (Arnie Ostebee) (02/06/89)

/*
 *  The following program causes gcc-1.33 to dump core (fatal signal 11)
 *  when compiled on a Sun-3 running SunOS 4.0.1:
 *
 *	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 bug2.c /tmp/cca20098.cpp
 *	GNU CPP version 1.33
 *	    /usr/local/lib/gcc-cc1 /tmp/cca20098.cpp -quiet -dumpbase
 *	    bug2.c -O -version -o /tmp/cca20098.s
 *	GNU C version 1.33 (68k, MIT syntax) compiled by GNU C version 1.33.
 *	gcc: Program cc1 got fatal signal 11.
 *
 *
 *  REPEAT BY:  gcc -O -c bug2.c
 *
 *
 *							Arnie Ostebee
 * 							ostebee@stolaf.edu
 *
 */


char 	x;

void 
bug2()
{
    struct { unsigned char y; } z;

	z.y = x;
}