Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!harvard!panda!genrad!decvax!cwruecmp!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon Allbery) Newsgroups: net.lang.c,net.bugs Subject: expr?(void):(void) Message-ID: <1327@ncoast.UUCP> Date: Sun, 27-Jul-86 11:43:13 EDT Article-I.D.: ncoast.1327 Posted: Sun Jul 27 11:43:13 1986 Date-Received: Thu, 31-Jul-86 02:58:29 EDT References: <501@bunny.UUCP> <500@copper.UUCP> <273@watmath.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: net.lang.c Distribution: net Organization: Cleveland Public Access UNIX (ncoast), Cleveland, OH Lines: 32 Xref: mnetor net.lang.c:5498 net.bugs:299 Expires: Quoted from <273@watmath.UUCP> ["Re: C Compiler bug (and fix for a different one)"], by rbutterworth@watmath.UUCP (Ray Butterworth)... +--------------- | I'll trade for a fix for a problem with void functions and the ?: operator. | | void f3(which) | { | extern void f1(),f2(); | which?f1():f2(); | } | cc(1) gives an "incompatible types" error. +--------------- That's not a bug, it's a feature. Literally. Before you start complaining, consider that the intent of functions returning (void) is that of: #define procedure void procedure f1(x, y) { ... } ++Brandon -- ---------------- /--/ Brandon S. Allbery UUCP: decvax!cwruecmp! / / /|\/ Tridelta Industries, Inc. ncoast!tdi2!brandon ---- -------- /-++ 7350 Corporate Blvd. PHONE: +1 216 974 9210 / / /---, ---- Mentor, Ohio 44060 SYSOP: UNaXcess/ncoast / / / / / / -- HOME -- (216) 781-6201 24 hrs. / / / / / / 6615 Center St. Apt. A1-105 ARPA: ncoast!allbery% ---- -----~ ---- Mentor, Ohio 44060-4101 case.CSNET@csnet-relay