Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!panda!genrad!mit-eddie!nathan From: nathan@mit-eddie.MIT.EDU (Nathan Glasser) Newsgroups: net.lang.c Subject: Is this a known bug? Message-ID: <3127@mit-eddie.MIT.EDU> Date: Fri, 5-Sep-86 15:34:08 EDT Article-I.D.: mit-eddi.3127 Posted: Fri Sep 5 15:34:08 1986 Date-Received: Sat, 6-Sep-86 02:07:44 EDT Organization: M.I.T. EE/CS Computer Facility, Cambridge MA Lines: 28 Is the following a known 4.2bsc C compiler bug? I think I had heard of something related to this. The following program segment: foo() { void goo(); void (*moo)(); moo = goo; } Produces the error: "void.c", line 6: operands of = have incompatible types Yet this should be a valid use of a function pointer, and replacing the void's by int's removes the error. Also, does anybody whether the 4.3 compiler still has this bug? Thanks, -- Nathan Glasser nathan@mit-eddie.uucp (usenet) nathan@xx.lcs.mit.edu (arpa)