Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site psivax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!psivax!friesen From: friesen@psivax.UUCP (Stanley Friesen) Newsgroups: net.lang.c Subject: Re: void (*Problem)() = VoidFun; Message-ID: <411@psivax.UUCP> Date: Tue, 23-Apr-85 13:28:07 EST Article-I.D.: psivax.411 Posted: Tue Apr 23 13:28:07 1985 Date-Received: Thu, 25-Apr-85 08:24:43 EST References: <10339@brunix.UUCP> Reply-To: friesen@psivax.UUCP (Stanley friesen) Organization: Pacesetter Systems Inc., Sylmar, CA Lines: 26 Summary: In article <10339@brunix.UUCP> wrc@brunix.UUCP (william cook) writes: > >int IntFun() { puts("int"); return (5); } >void VoidFun() { puts("void"); } >int main() >{ > int (*IntPoint)(), i; > void (*VoidPoint)(); > > IntPoint = IntFun; > VoidPoint = VoidFun; >/* cc and lint: "foo.c", line 10: operands of = have incompatible types */ > > i = (*IntPoint)(); > (*VoidPoint)(); > } The above is a known bug in the BSD "C" compiler, it has been reported and is listed in the Mt Xinu Buglist Abstract which is available over the net. -- Sarima (Stanley Friesen) {trwrb|allegra|cbosgd|hplabs|ihnp4|aero!uscvax!akgua}!sdcrdcf!psivax!friesen or {ttdica|quad1|bellcore|scgvaxd}!psivax!friesen