Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!rutgers!ucsd!orion.cf.uci.edu!uci-ics!siam.ics.uci.edu!schmidt From: schmidt@siam.ics.uci.edu (Doug Schmidt) Newsgroups: gnu.gcc.bug Subject: Re: gcc 1.32 duplicate case bug Message-ID: <5640@paris.ics.uci.edu> Date: 27 Jan 89 03:44:39 GMT References: <8901201214.AA03028@moose.cita.utoronto.ca> <958@ubu.warwick.UUCP> Sender: news@paris.ics.uci.edu Reply-To: Doug Schmidt Organization: University of California at Irvine: ICS Dept. Lines: 29 In article <958@ubu.warwick.UUCP> geoff@emerald.UUCP (Geoff Rimmer) writes: ++ [example of 1.32 failing to detect duplicate cases in a switch ++Is there a later version of gcc that has this bug fixed? ++ ++Geoff Yes! This is fixed in 1.33. See below: ---------------------------------------- gcc version 1.33 /usr/public/lib/gcc/gcc-cpp -v -I/cd/ua/schmidt/include/ -undef -D__GNUC__ -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ bug.c /tmp/cca04847.cpp GNU CPP version 1.33 /usr/public/lib/gcc/gcc-cc1 /tmp/cca04847.cpp -quiet -dumpbase bug.c -fstrength-reduce -finline-functions -version -o /tmp/cca04847.s GNU C version 1.33 (sparc) compiled by GNU C version 1.33. bug.c: In function main: bug.c:16: duplicate case value ---------------------------------------- Doug -- schmidt@ics.uci.edu (ARPA) | Per me si va nella citta' dolente. office: (714) 856-4043 | Per me si va nell'eterno dolore. | Per me si va tra la perduta gente. | Lasciate ogni speranza o voi ch'entrate.