[Bug fortran/34722] compile results in "internal compiler error: segmentation fault" message

dominiq at lps dot ens dot fr gcc-bugzilla@gcc.gnu.org
Wed Jan 9 10:35:00 GMT 2008



------- Comment #5 from dominiq at lps dot ens dot fr  2008-01-09 10:11 -------
Further reduced test case:

      PROGRAM GAMSANAL
      IMPLICIT NONE
      character :: tmp
      INTEGER IODICT
      LOGICAL DICEXIST

      INQUIRE(UNIT=IODICT, EXIST=DICEXIST)
end

      SUBROUTINE INVENTNAMES()
      IMPLICIT NONE
      END SUBROUTINE

If I comment the line "character :: tmp" I get an ICE:

pr34722_red.f90:7: internal compiler error: Segmentation fault
Please submit a full bug report,

If I comment the "INQUIRE" line, the code compiles fine. What is very weird, is
that if I comment the useless subroutine, the code compiles also.

>From the gfortran versions I have at hand, the bug appeared between gcc version
4.3.0 20061231 (FX build) and 20071105 (Tobias build) on
x86_64-unknown-linux-gnu and is not present in i386-pc-linux-gnu gcc version
4.3.0 20070716 (FX build).


-- 


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



More information about the Gcc-bugs mailing list