Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site tymix.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!oliveb!tymix!kanner
From: kanner@tymix.UUCP (Herb Kanner)
Newsgroups: net.lang.c
Subject: Enum in switch
Message-ID: <549@tymix.UUCP>
Date: Fri, 4-Oct-85 12:23:58 EDT
Article-I.D.: tymix.549
Posted: Fri Oct  4 12:23:58 1985
Date-Received: Sat, 5-Oct-85 07:16:19 EDT
Organization: Tymnet Inc., Cupertino CA
Lines: 15

Recently, we had the temporary use of an AT&T UNIX PC, which is supposed to
be running System V.  Before returning it whence it came, we tried to
compile and execute a moderate sized program (about 2000 lines of C) which
had been developed on 4.2BSD.  The first thing we had to fix, of course,
were instances of identifiers whose first eight characters coincided.  This
was expected.  What was not expected was that while the compiler accepted
the declaration of an enum, it refused to permit its use in a switch
statement.  Is this a bug or a feature?

This program did compile and execute ok on 4.2BSD.

-- 
Herb Kanner
Tymnet, Inc.
...!hplabs!oliveb!tymix!kanner