Article View: comp.std.c
Article #1963legality of assignment of function to a void *.
From: Mike Lijewski
Date: Mon, 12 Nov 1990 21:15
Date: Mon, 12 Nov 1990 21:15
18 lines
859 bytes
859 bytes
Is a standard conforming compiler required to issue an error
diagnostic for the following code. Thanks.
#include <stdio.h>
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
Technical Details
Message-ID:
<1990Nov12.211511.2344@batcomputer.tn.cornell.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!crdgw1!rpi!batcomputer!lijewskiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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