From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f4c619a88791a415,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 1450f6,f4c619a88791a415,start X-Google-Attributes: gid1450f6,public From: Nigel Goddard Subject: Bug in OSF1.32 C compiler on alpha Date: 1996/07/01 Message-ID: <4r965l$inj@news.psc.edu>#1/1 X-Deja-AN: 163138754 to: ngoddard content-type: text/plain; charset=us-ascii organization: Pittsburgh Supercomputing Center x-url: news:comp.sys.dec mime-version: 1.0 newsgroups: comp.sys.dec,cmu.comp.sys.dec.alpha x-mailer: Mozilla 1.1IS (X11; I; IRIX 5.3 IP22) Is this one known? Is there a fix? Briefly, code taking the address of a function parameter declared float in the old style is not compiled correctly. Here is a sample program #include static void G(px) float *px; { (void) printf("%f\n", *px); } static void F(x) float x; { (void) printf("%f\n", x); G(&x); } int main () { F(0.2); return(0); } Here is its output: axpfeb{66} cc -std0 bug.c -o bug axpfeb{67} bug 0.200000 -0.000000 axpfeb{68} Nigel Goddard