Type punning in C
Dik T. Winter
dik at cwi.nl
Fri Oct 13 10:58:00 AEST 1989
(You could read the parent twice; I did not include it twice.)
In article <10950 at riks.csl.sony.co.jp> diamond at ws.sony.junet (Norman Diamond) writes:
> In article <475 at idacrd.UUCP> desj at idacrd.UUCP (David desJardins) writes:
>
> > X = OR (I, 0).
> >(The Cray FORTRAN compiler optimizes out the trivial OR instruction.)
>
> Looks like the Cray Fortran compiler has a bug. The result of OR(I,0)
> should be an integer,
This ought to be in comp.lang.fortran; but nevertheless: no Mr Diamond.
OR is not a standard (generic) function in Fortran so Cray may play all
games with it (and defines it as typeless).
--
dik t. winter, cwi, amsterdam, nederland
INTERNET : dik at cwi.nl
BITNET/EARN: dik at mcvax
More information about the Comp.lang.c
mailing list