C Compiler bug (and fix for a different one)

Andrew Koenig ark at alice.UucP
Sun Jul 27 01:33:03 AEST 1986


> So, does anyone have a fix for this bug?
> 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.

As it should.  The only thing you're allowed to do with void values
is throw them away.



More information about the Comp.lang.c mailing list