Article View: gnu.gcc.bug
Article #2780Re: switch() difficulties in gcc v1.35
From: Conor P. Cahill
Date: Sun, 24 Dec 1989 11:58
Date: Sun, 24 Dec 1989 11:58
14 lines
1216 bytes
1216 bytes
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 | +-----------------------------------------------------------------------+
Technical Details
Message-ID:
<1989Dec24.115807.7229@virtech.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!virtech!cpcahilReferences:
<18472@netnews.upenn.edu> <18485@netnews.upenn.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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