void (*Problem)() = VoidFun;

Stanley Friesen friesen at psivax.UUCP
Wed Apr 24 04:28:07 AEST 1985


In article <10339 at brunix.UUCP> wrc at 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



More information about the Comp.lang.c mailing list