Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!mcvax!dik From: dik@cwi.nl (Dik T. Winter) Newsgroups: comp.lang.c Subject: Re: Type punning in C Message-ID: <8461@boring.cwi.nl> Date: 13 Oct 89 00:58:00 GMT References: <475@idacrd.UUCP> <10950@riks.csl.sony.co.jp> Organization: CWI, Amsterdam Lines: 18 (You could read the parent twice; I did not include it twice.) In article <10950@riks.csl.sony.co.jp> diamond@ws.sony.junet (Norman Diamond) writes: > In article <475@idacrd.UUCP> desj@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@cwi.nl BITNET/EARN: dik@mcvax