We have a rather large suite of fortran (mostly f90 - some f77) code that we would like to "port" to gnu fortan. It is today compiled on Sun f90 (derived from Cray CF90). We do have some issues... This might not be defined as a gfortran error - but we do not know (how to find out)
Our current compiler allows redefinition of variables. gfortran seems not to. Is there a switch in gfortran that may be used? heres the details & example: >gfortran -v Using built-in specs. Target: sparc-sun-solaris2.8 Configured with: /t3-0/shared/gnu/gcc-4.3.3/configure --prefix=/t3-0/shared/gnu/gcc-trunk --srcdir=/t3-0/shared/gnu/gcc-4.3.3 --enable-languages=c,fortran --with-mpfr=/usr/local --with-gmp=/usr/local --with-pkgversion=432 Thread model: posix gcc version 4.3.3 (432) program: SUBROUTINE SLSYNOFX(TSN,UFD,STATUS) INCLUDE 'rvp.mnc' INTEGER :: SL_I4NOVALUEX ! -- DO something RETURN END includefile: >cat rvp.mnc ! includefile PARAMETER (SL_I4NOVALUE = Z'80000000') INTEGER :: SL_I4NOVALUEX INTEGER :: SL2_I4NOVALUE INTEGER :: SL_I4NOVALUEX running: $gfortran -g -ffree-form -fno-range-check -c rv1.f90 -o rv1.o rvp.mnc:7.30: Included at rv1.f90:2: INTEGER :: SL_I4NOVALUEX 1 Error: Symbol 'sl_i4novaluex' at (1) already has basic type of INTEGER rv1.f90:3.31: INTEGER :: SL_I4NOVALUEX 1 Error: Symbol 'sl_i4novaluex' at (1) already has basic type of INTEGER $ -- Summary: fails on redefinition of variables Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rvatne at gmail dot com GCC build triplet: sparc-sun-solaris2.8 GCC host triplet: sparc-sun-solaris2.8 GCC target triplet: sparc-sun-solaris2.8 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39342