Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!gatech!amdcad!bcase From: bcase@amdcad.UUCP (Brian case) Newsgroups: net.lang.c Subject: PCC bug; probably an old one Message-ID: <9196@amdcad.UUCP> Date: Wed, 5-Feb-86 18:40:03 EST Article-I.D.: amdcad.9196 Posted: Wed Feb 5 18:40:03 1986 Date-Received: Fri, 7-Feb-86 06:17:26 EST Organization: AMDCAD, Sunnyvale, CA Lines: 12 Keywords: switch, floating point I am in the process of porting the portable C compiler. I just found what I think to be a bug (well, I am sure it is a bug) in the front end. It seems that the PCC front end generates incorrect code for a switch statement whose expression is of type double or float (and possibly other types; haven't checked 'em out). In K&R, it is stated that the type of a switch expression must be int. So, the PCC front end should flag an error (but doesn't). Is this really a bug or have I missed something? Sorry if I am bringing up an old topic. Reply by mail unless general net interest is suspected. Brian Case ..ihnp4!amdcad!bcase