Path: utzoo!attcan!uunet!crdgw1!rpi!batcomputer!lijewski From: lijewski@theory.tn.cornell.edu (Mike Lijewski) Newsgroups: comp.std.c Subject: legality of assignment of function to a void *. Message-ID: <1990Nov12.211511.2344@batcomputer.tn.cornell.edu> Date: 12 Nov 90 21:15:11 GMT Sender: lijewski@batcomputer.tn.cornell.edu (Mike Lijewski) Organization: Cornell National Supercomputer Facility Lines: 18 Is a standard conforming compiler required to issue an error diagnostic for the following code. Thanks. #include double f(double x) { return x * x; } int main(void) { void *ptr = f; return 0; } -- Mike Lijewski (H)607/272-0238 (W)607/254-8686 Cornell National Supercomputer Facility ARPA: lijewski@theory.tn.cornell.edu BITNET: mjlx@cornellf.bitnet SMAIL: 25 Renwick Heights Road, Ithaca, NY 14850