Path: utzoo!attcan!uunet!oddjob!ncar!ames!oliveb!sun!gorodish!guy
From: guy@gorodish.Sun.COM (Guy Harris)
Newsgroups: comp.lang.c
Subject: Re: Possible bug in the SUN C compiler
Message-ID: <56393@sun.uucp>
Date: 13 Jun 88 23:57:29 GMT
References: <18266@cornell.UUCP>
Sender: news@sun.uucp
Distribution: comp
Lines: 10

> The problem is that the compiler allows one to use variables of struct type
> as switch selectors.  This can't be right.  Can it???

No, it can't.

> Below is a code fragment which compiles without error on SUN OS version 3.5.

"Fixed in 4.0".  Some versions of PCC didn't catch this; 4.3BSD's and SunOS
4.0's versions have been fixed to do so (although 4.3BSD's just issues a
warning, for some unknown reason; ours considers this an error).