Survey of "duplicate case in switch" errors
Bennett Todd
bet at dukeac.UUCP
Wed Feb 8 03:30:50 AEST 1989
>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
More information about the Comp.lang.c
mailing list