Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watmath.UUCP Path: utzoo!watmath!rbutterworth From: rbutterworth@watmath.UUCP (Ray Butterworth) Newsgroups: net.lang.c,net.bugs Subject: Re: C Compiler bug (and fix for a different one) Message-ID: <461@watmath.UUCP> Date: Mon, 28-Jul-86 12:10:44 EDT Article-I.D.: watmath.461 Posted: Mon Jul 28 12:10:44 1986 Date-Received: Tue, 29-Jul-86 00:33:06 EDT References: <273@watmath.UUCP> <5858@alice.uUCp> Organization: U of Waterloo, Ontario Lines: 15 Xref: watmath net.lang.c:10080 net.bugs:848 > > 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. If I'm not throwing them away, what is it you think I'm doing with them? Also, the proposed ANSI draft explicitly states that the second and third operands of ?: may each have (void) type, so I'm not trying anything unusual here.