This is on x86_64-unknown-linux-gnu-gcc with
GNU Fortran 95 (GCC) 4.3.0 20061109
r118621 2006-11-09 15:42:19 +0100
(since the anoynmous SVN does not work, I'm a bit hampered with testing. Using
gfortran 4.2 it does not crash.)

The error only occurs with -O2 but not with -O1:

gfortran -O2  -c test.f90

test.f90: In function 'zsk_driver_cgnr':
test.f90:8: internal compiler error: tree check: expected ssa_name, have
symbol_memory_tag in verify_ssa, at tree-ssa.c:776


subroutine zsk_driver_cgnr (opt, sol, sk_y)
  implicit none
  complex(8) :: sol(:)
  real(8) :: sk_y(:)

  interface
    subroutine opt()
    end subroutine opt
  end interface

  sk_y(1) = aimag(sol(1))
  sol(1) = cmplx(0.0,1.0)*sk_y(1)
end subroutine zsk_driver_cgnr


-- 
           Summary: ICE: tree check: expected ssa_name, have
                    symbol_memory_tag in verify_ssa, at tree-ssa.c:776
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to