Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!gatech!udel!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!hubcap!mjs From: mjs@hubcap.clemson.edu (m j saltzman) Newsgroups: comp.lang.fortran Subject: Re: Duplicate names in formal parameter lists Message-ID: <11101@hubcap.clemson.edu> Date: 23 Oct 90 15:02:45 GMT Distribution: usa Organization: Clemson University Lines: 65 References:<11084@hubcap.clemson.edu# <2385@cod.NOSC.MIL> Followup-To: Keywords: In article %> SUBROUTINE FOO(X, [other parameters], X) %> ... %>This compiled without error on a Sun (with the -u flag) and on ULTRICS. %...Could it be that both of these compilers derive from the original Berkeley %...Unix f77 compiler? %The likely behavior on those compilers which ignore the error is to choose %one argument (probably the later one) and use it throughout the subroutine. %In any case, this looks like a clear programming error to me. %A Convex compiler gives an error complaining X being declared twice and %about the dummy argument appearing twice. Yes, it was a programming error, and yes, the Sun compiler does exactly what you describe. Thanks to everyone who responded here, and by e-mail. Matthew Saltzman mjs@clemson.edu