Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* OSF/ALPHA C compiler bug
@ 1993-12-17 19:18 Guojun Jin[ITG]
  1993-12-17 19:55 ` David J. MacKenzie
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Guojun Jin[ITG] @ 1993-12-17 19:18 UTC (permalink / raw)


============================== test.c ====================================
include <stdio.h>
 
main()
{
float   f=0.0;
char    *cp;
int     *ip=(int*)&cp;
        *ip = f;
if (cp != NULL)
        printf("cp is not NULL, but -> %d\n", cp);
printf("Cp is %u\n", cp);
}
 
============================== end of test.c ================================
alpha1: cc -g test.c
alpha1: a.out
cp is not NULL, but -> 0
Cp is 0
 
What is the cp value?
 
/---------------------------------------v-------------------------------\
|	Jin Guojun, Imaging Technology	| Internet: g_jin@lbl.gov	|
|	Lawrence Berkeley Laboratory	| Usenet: ucbvax!g_jin@lbl.gov	|
|			| Bitnet:	jin%george.lbl.gov@Csa3.LBL.Gov	|


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1994-01-13 21:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-17 19:18 OSF/ALPHA C compiler bug Guojun Jin[ITG]
1993-12-17 19:55 ` David J. MacKenzie
1993-12-17 21:46 ` OSF/ALPHA C compiler bug (not!) Daniel S. Riley
1994-01-13 21:38 ` OSF/ALPHA C compiler bug Dennis Murphy
1994-01-13 21:44 ` Dennis Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox