Xref: utzoo gnu.gcc.bug:1788 comp.lang.c:24719 Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: gnu.gcc.bug,comp.lang.c Subject: Re: switch() difficulties in gcc v1.35 Message-ID: <1989Dec24.115807.7229@virtech.uucp> Date: 24 Dec 89 11:58:07 GMT References: <18472@netnews.upenn.edu> <18485@netnews.upenn.edu> Organization: Virtual Technologies Inc. Lines: 14 In article <18485@netnews.upenn.edu>, weisen@eniac.seas.upenn.edu) (Neil I. Weisenfeld ;-) writes: > Thanks to all those who gave me (non-obnoxious) replies to my posting. > I didn't realize that gcc would interpret `defualt' in a case xxx: as > a label if it hadn't been defined. Is this non-ANSI C not to give an > error for undefined and un-prototyped symbols. How does one define or prototype a statement label? Interpreting "defualt" as a statement label is correct in all versions of C. -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+