From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c9e8a262ca84d551 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-01-13 15:24:24 PST Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!nntpd.lkg.dec.com!gemmax!dmurphy From: dmurphy@gemmax.enet.dec.com (Dennis Murphy) Newsgroups: comp.unix.osf.osf1 Subject: Re: OSF/ALPHA C compiler bug Date: 13 Jan 1994 21:44:15 GMT Organization: Digital Equipment Corporation Sender: dmurphy@gemmax (Dennis Murphy) Distribution: world Message-ID: <2h4fbf$6rn@nntpd.lkg.dec.com> References: <2et0mf$1v3@overload.lbl.gov> Reply-To: dmurphy@tle.enet.dec.com NNTP-Posting-Host: gemmax.zko.dec.com Keywords: OSF ALPHA bugs With the program altered as follows: main() { int i1; float f=0.0; char *cp; int *ip=(int*)&cp; *ip = f; if (cp != NULL) printf("cp is not NULL, but -> 0x%lx\n", cp); printf("size of ptr is %d, size of int is %d\n", sizeof(cp), sizeof(i1) ); } I get the results: cp is not NULL, but -> 0x100000000 size of ptr is 8, size of int is 4 I hope that this helps: Dennis Murphy