Get following error message when compiling fortran 90 code:

> "internal compiler error: in fold_binary, at fold-const.c:8239".

Test code that fails , see below:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  !---------------------------------
  program fred
  !---------------------------------
  real              :: dezz(1:10)
  real, allocatable :: jack(:)
  !
  allocate(jack(10)); jack = 9.
  dezz = john(jack,1)
  print*,'dezz = ',dezz

  contains
    !---------------------------------
    function john(t,il)
    !---------------------------------
    real  :: t(il:)
    real  :: john(1:10)
    john = 10.
    end function john
  end
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Compiled on suse 9 box as "gfortran test.f90" using
version 4.2.0 20061015 (experimental).


-- 
           Summary: internal compiler error: in fold_binary, at fold-
                    const.c:8239
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pmason at ricardo dot com
 GCC build triplet: 4.2.0 20061015 (experimental)
  GCC host triplet: suse 9.0
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to