This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/27411] New: crashes in sra_walk_expr and emit_move_insn


(My bugs from Jan 2005 now appear to be fixed, so I can retry the same app and
get a little further.)

With the OSX 20060424 prebuilt binary, under OSX 10.4.6, the following code

module gd_calc
  type calc_signal_type
    integer :: dummy
    logical :: used
    integer :: signal_number
  end type
contains
  subroutine activate_gd_calcs (used, outputs)
    logical, intent(inout) :: used(:)
    type(calc_signal_type), pointer :: outputs(:)
      outputs%used = used(outputs%signal_number)
    return
  end subroutine activate_gd_calcs
end module gd_calc

gives, compiling without -O,

bug1.f90:13: internal compiler error: in emit_move_insn, at expr.c:3236

or, compiling with -O,

bug1.f90:10: internal compiler error: in sra_walk_expr, at tree-sra.c:759

Interestingly, the crash in emit_move_insn goes away if I remove the apparently
unrelated derived-type component named dummy.


-- 
           Summary: crashes in sra_walk_expr and emit_move_insn
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: 1fhcwee02 at sneakemail dot com


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]