I'm trying to use gfortran version "GNU Fortran 95 (GCC 4.0.0)" on
an Opteron system:

 Linux nika 2.6.11.7 #1 SMP Wed Apr 13 13:55:17 AKDT 2005 x86_64 GNU/Linux

I'm building NCAR Graphics, which is a large Fortran 77 and C based software
package.  This software builds under various versions of g77/gcc.

I'm having multiple problems with gfortran, but I'll address the easiest one
to report:

nika:~/ncarg/ncarg2d/src/libncarg_gks/awi> gfortran -c g.f
g.f: In function 'gesc':
g.f:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
nika:~/ncarg/ncarg2d/src/libncarg_gks/awi> 



Here's the 8-line file:

      SUBROUTINE GESC(LIDR,IDR)
      INTEGER LIDR, IWKID
      CHARACTER*(*) IDR(LIDR)

      READ (IDR,501) IWKID
 501  FORMAT(I5)
      RETURN
      END

--Mary

-- 
           Summary: gfortran barfs on READ line
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: haley at ucar dot edu
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21406

Reply via email to