Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cwjcc!ukma!xanth!mcnc!ecsvax!dukeac!bet From: bet@dukeac.UUCP (Bennett Todd) Newsgroups: comp.lang.c Subject: Re: Survey of "duplicate case in switch" errors Message-ID: <1224@dukeac.UUCP> Date: 7 Feb 89 17:30:50 GMT References: <36376@oliveb.olivetti.com> <22640001@hpesrgd.HP.COM> Reply-To: bet@dukeac.UUCP (Bennett Todd) Organization: Radiology, Duke Med. Center, Durham, NC Lines: 12 >HP-UX version 2.0 on a 9000/825 says this: > >cc: "test.c", line 13: error 1526: Duplicate case constant (5) in switch. > >Looks right to me, although sometimes I wish I *could* have duplicates. Me too! What a great idea, duplicate case labels. It would make programming non-deterministic finite state machines a piece of cake! Maybe we could get X3J11 to add it in:-). -Bennett