Article View: gnu.gcc.bug
Article #2777switch() difficulties in gcc v1.35
From: weisen Neil I. Weisenfeld -
Date: Sat, 23 Dec 1989 05:46
Date: Sat, 23 Dec 1989 05:46
24 lines
1701 bytes
1701 bytes
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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Technical Details
Message-ID:
<18472@netnews.upenn.edu>Path:
arc1-ca.pugleaf.net!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!weisenShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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