Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!elroy!usc!skat.usc.edu!blarson From: blarson@skat.usc.edu (Bob Larson) Newsgroups: comp.lang.c Subject: Re: Lvalues and casts Message-ID: <17370@usc.edu> Date: 23 May 89 17:19:53 GMT References: <847@tub.UUCP> Sender: news@usc.edu Reply-To: blarson@skat.usc.edu (Bob Larson) Organization: USC AIS, Los Angeles Lines: 15 In article <847@tub.UUCP> net@tub.UUCP (Oliver Laumann) writes: > (int *)cp = ip; >The PCC, however, says "illegal lvalue in assignment". Is this legal >C, i.e. is the result of a cast really an lvalue? Casts are never lvalues. Gcc documents this bug as a feature. (Hopefully it is caught by -pedantic) -- Bob Larson Arpa: blarson@skat.usc.edu Uucp: {uunet,cit-vax}!usc!skat!blarson Prime mailing list: info-prime-request%ais1@ecla.usc.edu usc!ais1!info-prime-request