Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!samsung!ginosko!uunet!munnari.oz.au!cs.mu.oz.au!ok From: ok@cs.mu.oz.au (Richard O'Keefe) Newsgroups: comp.lang.c Subject: Re: Type of expression in switch statement Message-ID: <2586@munnari.oz.au> Date: 30 Oct 89 08:57:56 GMT References: <1989Oct30.043155.1931@eng.umd.edu> <20448@mimsy.umd.edu> Sender: news@cs.mu.oz.au Lines: 10 In article <20448@mimsy.umd.edu>, chris@mimsy.umd.edu (Chris Torek) writes: > In article <1989Oct30.043155.1931@eng.umd.edu> nero@eng.umd.edu > (Oren L. Stern) writes: [switch (pointer expression)] > This was fixed some time ago in 4BSD: > "foo.c", line n: warning: switch expression not type int "ELXSI 4.3 BSD UNIX" cc accepts it, and lint accepts it. "UNIX System V Release ax.2.2f ns32332" cc warns but produces workable code, lint warns. I don't think this is a PCC compiler.