From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,637c38073e9248fa X-Google-Attributes: gidfee84,public From: lionel@quark.zko.dec.com (Steve Lionel) Subject: Re: F77 4.0: Is this warning correct? Date: 1996/08/26 Message-ID: <4vsc4j$9qs@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 176549310 distribution: world sender: lionel@quark.enet.dec.com (Steve Lionel) references: <4vki6o$c0@pt9201.ped.pto.ford.com> organization: Digital Equipment Corporation, Nashua NH reply-to: lionel@quark.zko.dec.com (Steve Lionel) newsgroups: comp.unix.osf.osf1 In article <4vki6o$c0@pt9201.ped.pto.ford.com>, patteeuw@sys2.ped.pto.ford.com (Jack Patteeuw) writes: |>> f77 -warn argument_checking -c x.f |>>fort: Warning: x.f, line 10: Actual argument data type ( Unknown ) not equal |>to routine's dummy argument type ( Integer*4 ). |>> CALL ONE(S,LEN(S)) |> |>You may have found a bug here. Your code compiles cleanly on VMS and |>the compiler should know that the LEN function does return Integer*4. As I mentioned in my earlier posting, the only bug is the "Unknown" in the message. LEN returns INTEGER*8 in the current version (4.0 on UNIX, 7.0 on VMS.) You'll get the same message using 7.0 on OpenVMS Alpha. (The VAX compiler doesn't have /WARN=ARGUMENT_CHECKING). -- Steve Lionel mailto:lionel@quark.zko.dec.com Fortran Development http://www.digital.com/info/slionel.html Digital Equipment Corporation 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For information on Digital Fortran, see http://www.digital.com/info/hpc/fortran/