Path: utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!CS.ROCHESTER.EDU!ken From: ken@CS.ROCHESTER.EDU (Ken Yap) Newsgroups: gnu.gcc.bug Subject: typedef bug? Message-ID: <8901240450.AA26913@cedar.cs.rochester.edu> Date: 24 Jan 89 04:50:29 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19 Is this a legal program? SunOS 3.4 cc thinks so. gcc 1.31 doesn't. typedef int DVIU; foo() { struct dvi_file_stack { DVIU s_h, s_v, s_hh, s_vv, s_w, s_x, s_y, s_z}; } Session: gcc version 1.31 /usr/su/lib/gcc-cpp -v -undef -D__GNU__ -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__HAVE_68881__ -Dmc68020 b.c /tmp/cca26908.cpp GNU CPP version 1.31 /usr/su/lib/gcc-cc1 /tmp/cca26908.cpp -quiet -dumpbase b.c -version -o /tmp/cca26908.s GNU C version 1.31 (68k, MIT syntax) compiled by GNU C version 1.31. b.c: In function foo: b.c:6: parse error before `}'