Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!nosc!cod!burkley From: burkley@cod.NOSC.MIL (V. J. Burkley) Newsgroups: comp.lang.fortran Subject: Re: Duplicate names in formal parameter lists Message-ID: <2385@cod.NOSC.MIL> Date: 22 Oct 90 18:17:57 GMT References: <11084@hubcap.clemson.edu> Reply-To: burkley@cod.nosc.mil.UUCP (V. J. Burkley) Distribution: usa Organization: Naval Ocean Systems Center, San Diego Lines: 16 In article <11084@hubcap.clemson.edu> mjs@hubcap.clemson.edu (m j saltzman) writes: >I discovered an error in a FORTRAN program I was modifying, which amounts >to the following: > > SUBROUTINE FOO(X, [other parameters], X) > DOUBLE PRECISION X(N) > > [rest of code] > ... I have had a similar experience many years ago on an IBM PC. In my case the calling routine did not have the same arguments at X when calling FOO. What happend? An intermittent error that was harder than hell to find. I don't know why compilers don't check for it, it seems that there is very little benefit for allowing it to exist if it is legal in Fortran 77. -Joe Burkley