From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,1555b3aaf4501faf X-Google-Attributes: gidf7344,public X-Google-Thread: 10f8a1,1555b3aaf4501faf X-Google-Attributes: gid10f8a1,public X-Google-Thread: f7cd1,1555b3aaf4501faf X-Google-Attributes: gidf7cd1,public X-Google-Thread: 1164f8,1555b3aaf4501faf X-Google-Attributes: gid1164f8,public X-Google-Thread: 1094ba,1555b3aaf4501faf X-Google-Attributes: gid1094ba,public From: lionel@quark.zko.dec.com (Steve Lionel) Subject: Re: Recent Digital Fortan incompatibility for Sign Extension of Untyped Bit Constants Date: 1996/12/19 Message-ID: <59bubn$luj$1@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 204947569 distribution: world sender: lionel@quark.enet.dec.com (Steve Lionel) references: <1996Dec17.055242.11669@riksun.riken.go.jp> <5974lu$e3d$1@nntpd.lkg.dec.com> <5999tu$mn6@stc06.ctd.ornl.gov> organization: Digital Equipment Corporation, Nashua NH reply-to: lionel@quark.zko.dec.com (Steve Lionel) newsgroups: comp.lang.fortran,comp.os.vms,vmsnet.alpha,vmsnet.misc,comp.sys.dec In article <5999tu$mn6@stc06.ctd.ornl.gov>, lmp@xncse1.orfs.ornl.gov (Petrie L M) writes: |>Does this mean that on the VAX, if I |> |> call sub1 ( x, n, 1 ) |> ^ |>where sub1 is |> |> subroutine sub1 ( x, n, i ) |> dimension x(n) |> integer i |> ... |> end |> |>that "i" is going to be a number > 2**16? |>This doesn't seem reasonable to me, even if it is |>18 year old behavior. No, it doesn't. The behavior I referred to explicitly relates to use of constants in an expression with a binary operator. In contexts such as an actual argument, the largest integer type is used. -- 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/