From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,1555b3aaf4501faf,start X-Google-Attributes: gidf7344,public X-Google-Thread: 10f8a1,1555b3aaf4501faf,start X-Google-Attributes: gid10f8a1,public X-Google-Thread: f7cd1,1555b3aaf4501faf,start X-Google-Attributes: gidf7cd1,public X-Google-Thread: 1094ba,1555b3aaf4501faf,start X-Google-Attributes: gid1094ba,public X-Google-Thread: 1164f8,1555b3aaf4501faf,start X-Google-Attributes: gid1164f8,public From: ichihara@rikaxp.riken.go.jp (Takashi Ichihara) Subject: Recent Digital Fortan incompatibility for Sign Extension of Untyped Bit Constants Date: 1996/12/17 Message-ID: <1996Dec17.055242.11669@riksun.riken.go.jp>#1/1 X-Deja-AN: 204519374 sender: news@riksun.riken.go.jp organization: The Institute of Physical and Chemical Research (RIKEN), Wako, Saitama, Japan reply-to: ichihara@rikaxp.riken.go.jp newsgroups: comp.lang.fortran,comp.os.vms,vmsnet.alpha,vmsnet.misc,comp.sys.dec 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