Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!caip!clyde!cbatt!cbuxc!cblpe!apc From: apc@cblpe.UUCP (Alan Curtis) Newsgroups: net.lang.c,net.bugs Subject: Re: C Compiler bug (and fix for a different one) Message-ID: <187@cblpe.UUCP> Date: Tue, 19-Aug-86 21:09:29 EDT Article-I.D.: cblpe.187 Posted: Tue Aug 19 21:09:29 1986 Date-Received: Thu, 21-Aug-86 01:05:26 EDT References: <273@watmath.UUCP> <5858@alice.uUCp> <134@sas.UUCP> Reply-To: apc@cblpe.UUCP (55212-Alan Curtis) Organization: AT&T Bell Laboratories - Columbus Lines: 31 Xref: mnetor net.lang.c:5690 net.bugs:326 In article <134@sas.UUCP> jcz@sas.UUCP (Carl Zeigler) writes: > > In article <5858@alice.uUCp>, ark@alice.UucP (Andrew Koenig) writes: > > > So, does anyone have a fix for this bug? > > > > > > void f3(which) > > > { > > > extern void f1(),f2(); > > > which?f1():f2(); > > > } > > > cc(1) gives an "incompatible types" error. > > > > As it should. The only thing you're allowed to do with void values > > is throw them away. > > >Scan again, Andrew, the (void) values are being thrown away. > No, the value of the statement is being thrown away, not the value of the void(s). Would you let me say: . . . f1() + f2(); . . Since I am throwing both away? Alan Curtis