Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!decwrl!nsc!pyramid!mikel From: mikel@pyrps5 (Mike Lipsie) Newsgroups: comp.lang.fortran Subject: Re: compiling equivalence statements ... Message-ID: <75493@pyramid.pyramid.com> Date: 29 Jun 89 21:58:01 GMT Sender: daemon@pyramid.pyramid.com Reply-To: mikel@pyrps5.pyramid.com (Mike Lipsie) Distribution: usa Organization: Pyramid Technology Corp., Mountain View, CA Lines: 18 In article <14674@ut-emx.UUCP> chpf127@ut-emx.UUCP (John W. Eaton) writes: > > dimension stf(12,3) > equivalence ( is1, stf(3,1) ) > >Also, if is1 is of type integer and stf is of type real, this program >is not strictly legal, but will probably work on many machines that >use the same number of bits for integer and real variables. The rest of your article was excellent but I couldn't let this error slip past. Fortran 77 (as well as 66) requires that INTEGER and REAL use the same amount of storage. The relevant passages in the standard are 4.3 and 4.4 which require "a[n] [integer|real] datum has one numeric storage unit". Mike