allbery@ncoast.UUCP (Brandon Allbery) (07/27/86)
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