Xref: utzoo gnu.gcc.bug:1784 comp.lang.c:24702 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!rutgers!netnews.upenn.edu!eniac.seas.upenn.edu!weisen From: weisen@eniac.seas.upenn.edu) (Neil I. Weisenfeld ;-) Newsgroups: gnu.gcc.bug,comp.lang.c Subject: switch() difficulties in gcc v1.35 Message-ID: <18472@netnews.upenn.edu> Date: 23 Dec 89 05:46:22 GMT Sender: news@netnews.upenn.edu Reply-To: weisen@eniac.seas.upenn.edu (Neil I. Weisenfeld ) Organization: University of Pennsylvania Lines: 24 It's been a while since this happened so I don't have the code lying around, but.... I am using gcc v1.35 under DEC's ULTRIX. I was diligently working on a project that was due the next morning when quite a bit of my time was taken up trying to find a really weird bug. As it turns out, I misspelled `default' as `defualt' in a switch statement. The code compiled without an error, however the `defualt' was never executed; it just dropped out of the switch. Is this a bug or is there a rational `C' explanation for this? Neil -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # ## Neil Weisenfeld | Internet: ### # Univ. of Pennsylvania | weisen@eniac.seas.upenn.edu # # Computer Science Dept. | ##### # Class of 1991 | # # | USPS: ### # <-giant killer | 3700 Spruce St., Box 572 # ## net-smile | Philadelphia, PA 19104 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-