Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UUNET.UU.NET!lotus!campbell From: lotus!campbell@UUNET.UU.NET (Jim Campbell) Newsgroups: gnu.gcc.bug Subject: Gcc 1.33 crashes in i386-sysV mode on following input Message-ID: <8904022127.AA13937@lotus.lotus.com> Date: 2 Apr 89 21:27:48 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 38 Hi, The following lines of input cause the cc1 module of gcc to die with a fatal error message, citing signal 6, when the compiler is compiled to run under the i386-sysv configuration on AT&T 6386 computer running System V.3.2. I have traced the source of the error to expr.c, in the routine emit_move_insn(). This is the smallest I could make the test case. The bug disappears when structure members are removed or made into a different type. Any help you could give would be appreciated. My work # is 617/225-1618 if you have any questions. -- Jim Campbell, Lotus Development --> cut here <-- extern char **vec; typedef struct { unsigned short int val_loc; signed char type; } struct1; typedef struct { unsigned char fields; } struct2; static int foo() { unsigned short int var; var = ((struct2 *)((struct1 *)((vec[3]))) )->fields * sizeof(struct1); }