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/33040] [ISO_C_BINDING] ICE in gfc_trans_structure_assign



------- Comment #2 from burnus at gcc dot gnu dot org  2007-08-29 18:15 -------
At least for it currently crashes already for the following reduced example;
the problem seems to be the default initializer. (Another hint that this is
indeed the problem: After commenting out the "if (f->sym && f->sym->attr.intent
== INTENT_OUT" etc. in gfc_trans_deferred_vars, gfortran does not crash
anymore.)

module m
  use, intrinsic :: iso_c_binding
  implicit none
  type t
    type(c_ptr) :: matrix  = c_null_ptr
  end type t
contains
  subroutine func(a)
    type(t), intent(out) :: a
  end subroutine func
end module m


-- 


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


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