Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Lvalues and casts Message-ID: <10310@smoke.BRL.MIL> Date: 23 May 89 20:06:36 GMT References: <847@tub.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 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? No, to the contrary it is not, and that is what the compiler is trying to tell you in its obscure way. The target of an assignment is required to be a modifiable lvalue.