switch() difficulties in gcc v1.35
weisen at eniac.seas.upenn.edu
weisen at eniac.seas.upenn.edu
Sat Dec 23 16:46:22 AEST 1989
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 at eniac.seas.upenn.edu
# # Computer Science Dept. |
##### # Class of 1991 |
# # | USPS:
### # <-giant killer | 3700 Spruce St., Box 572
# ## net-smile | Philadelphia, PA 19104
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the Comp.lang.c
mailing list