This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33040] [ISO_C_BINDING] ICE in gfc_trans_structure_assign
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2007 18:15:44 -0000
- Subject: [Bug fortran/33040] [ISO_C_BINDING] ICE in gfc_trans_structure_assign
- References: <bug-33040-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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