From: ichihara@rikaxp.riken.go.jp (Takashi Ichihara)
Subject: Recent Digital Fortan incompatibility for Sign Extension of Untyped Bit Constants
Date: 1996/12/17 [thread overview]
Message-ID: <1996Dec17.055242.11669@riksun.riken.go.jp> (raw)
Hi folks
I noticed recently that Digital fortran compiler has introduced
incompatibility to the previous DEC fortran compiler and and also
other vender's platforms.
Following is a sample test program to show this incompatibility.
c sample program: test3.for
integer*4 i4a,i4b,i4c
i4a= '120000'O
i4b= '120000'O / 2
i4c= '120000'O / int(2)
write(*,*) i4a,i4b,i4c
end
c
(A) Result using the following environment
o DEC Fortran V6.2-108 (VAX) on Open VMS VAX V6.1
o DEC Fortran V6.3-711 (AXP) on Open VMS AXP V6.2
o Digital Fortran 77 V7.0-6 on Open VMS AXP V6.2
o DEC Fortran V3.8-711 on OSF/1 3.2A
o HP FORTRAN 77 Ver: B.10.20
o IBM AIX XL Fortran Compiler Version 03.02.0002.0000
o IBM AIX XL Fortran Compiler Version 03.02.0004.0000
o Silicon Graphics Fortran 77 version 5.2
o Absoft FORTRAN 77 on Linux
o AND, MANY OTHER PLATFORMS
$run test3
40960 20480 20480
I think this result is normal.
(B) result using the following environment (most recent Digital Fortran)
o DEC Fortran V6.3-155 (VAX) on Open VMS V6.2 VAX,
o Digital Fortran V6.4-165 (VAX) on Open VMS V6.2 VAX,
o AND, ALL FUTURE RELEASE OF DIGITAL FORTRAN (as DEC told us...)
$run tes3
40960 -12288 20480
-----------------------------------------------------------------------
Local DEC support center told us that DEC has changed the
specification of the Fortran Compiler with the release of DEC
Fortran VAX V6.3 (as can be found "sys$help:FORT063.RELEASE_NOTES :
2.1.1.6 Sign Extension of Untyped Bit Constants" ) and hereafter all
the DEC fortman compiler (including AXP and VAX, VMS and UNIX) is
going to be resulted as (B).
I cannot believe why this silly change was introduced. This
change made a lot of confusion for the compatibility with the
previous DEC/VAX fortran. Also this change introduced serious
incompatibility with the other vender's fortran.
Takashi Ichihara
next reply other threads:[~1996-12-17 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-12-17 5:00 Takashi Ichihara [this message]
1996-12-17 5:00 ` Recent Digital Fortan incompatibility for Sign Extension of Untyped Bit Constants Steve Lionel
1996-12-18 5:00 ` John Hascall
1996-12-19 5:00 ` Steve Lionel
1996-12-18 5:00 ` Petrie L M
1996-12-18 5:00 ` Ron Shepard
1996-12-19 5:00 ` Steve Lionel
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox