Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!INTELLICORP.COM!TRANLE From: TRANLE@INTELLICORP.COM (Minh Tran-Le) Newsgroups: gnu.gcc.bug Subject: bug in gcc-1.36 structure initialization . Message-ID: <9001170733.AA09095@life.ai.mit.edu> Date: 17 Jan 90 07:33:49 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 36 gcc 1.36 does not seems to be able to compile the following file: /* -- start of file test.c -- */ typedef union _MyUnion { char * str; long uval; } MyUnion; typedef struct _MyStruct { MyUnion name; } MyStruct; MyStruct abc = { 0 }; /* -- end of file test.c -- */ Here is what I got when trying to compile it: 1 paris:mtranle> gcc -c -v test.c gcc version 1.36 /usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dunix -Di386 -DAIX -D__unix__ -D__i386__ -D__AIX__ test.c /tmp/ccaaafOu.cpp GNU CPP version 1.36 /usr/local/lib/gcc-cc1 /tmp/ccaaafOu.cpp -quiet -dumpbase test.c -version -o /tmp/ccaaafOu.s GNU C version 1.36 (80386, ATT syntax) compiled by GNU C version 1.36. default target switches: -m80387 test.c:11: type mismatch in initialization 2 paris:mtranle> Does anybody knows about a fix or a work around for it ? Thanks, Tran-Le. Arpanet: tranle@intellicorp.com uucp: ..sun!icmv!mtranle -------