This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55854] ICE on intent(out) dummy argument with unlimited polymorphic component
- From: "damian at rouson dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 Jan 2013 18:11:56 +0000
- Subject: [Bug fortran/55854] ICE on intent(out) dummy argument with unlimited polymorphic component
- Auto-submitted: auto-generated
- References: <bug-55854-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55854
--- Comment #4 from Damian Rouson <damian at rouson dot net> 2013-01-03 18:11:56 UTC ---
Apparently an ICE also occurs if the argument intent is removed but "type" is
replaced by "class." See below. Is this fixed by the patch in comment 3?
Damian
$ cat ice_on_class_dummy_with_unlimited.f90
implicit none
type foo
class(*), allocatable :: bar
end type
contains
integer function foobar(this)
class(foo) :: this
end function
end
$ gfortran ice_on_class_dummy_with_unlimited.f90
ice_on_class_dummy_with_unlimited.f90: In function 'MAIN__':
ice_on_class_dummy_with_unlimited.f90:8:0: internal compiler error:
Segmentation fault: 11
end function
^
ice_on_class_dummy_with_unlimited.f90:8:0: internal compiler error: Abort trap:
6
gfortran: internal compiler error: Abort trap: 6 (program f951)
Abort trap: 6
$ gfortran --version
GNU Fortran (MacPorts gcc48 4.8-20121223_0) 4.8.0 20121223 (experimental)