Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site felix.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!pesnta!pertec!felix!edwards From: edwards@felix.UUCP (Dave Edwards) Newsgroups: net.unix-wizards Subject: 4.2 cc/lint strangeness (pcc) Message-ID: <417@felix.UUCP> Date: Wed, 13-Mar-85 16:04:15 EST Article-I.D.: felix.417 Posted: Wed Mar 13 16:04:15 1985 Date-Received: Thu, 14-Mar-85 05:47:11 EST Organization: FileNet Corp., Costa Mesa, Ca. Lines: 27 I was wondering if someone could help me understand what is going on with some problems with pcc that I am having. I am running on 4.2BSD. If I have a file which contains: unsigned a = (unsigned)5 >> 1; unsigned b = 5 >> 1; then cc gives me the complaint: line 1: compiler error: expression causes compiler loop: try simplifying and lint complains of an illegal initialization on that line. The construct on line 2 doesn't cause any problems. Just declaring an unsigned variable and doing the assignment as a statement also causes no problems. Also, I have a non-pcc based compiler that has no problem with this. What gives? Is this a known bug? Thanks, Dave Edwards FileNet Corp. {ucbvax,decvax,ihnp4,sdcrdcf}!trwrb!felix!edwards