Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!convex!convex.COM From: patrick@convex.COM (Patrick F. McGehearty) Newsgroups: comp.lang.fortran Subject: Re: Duplicate names in formal parameter lists Message-ID: <107528@convex.convex.com> Date: 22 Oct 90 23:23:35 GMT References: <11084@hubcap.clemson.edu> <1990Oct22.202712.29478@ux1.cso.uiuc.edu> Sender: usenet@convex.com Reply-To: patrick@convex.COM (Patrick F. McGehearty) Distribution: usa Organization: Convex Computer Corporation, Richardson, Tx. Lines: 12 In article <11084@hubcap.clemson.edu> mjs@hubcap.clemson.edu (m j saltzman) writes: > > 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.