http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56929
Bug #: 56929
Summary: ICE on dummy argument child class with coarray inside
parent
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
$ cat all.f90
module parent_coarray_component
type parent
real, allocatable :: dummy[:]
end type
type, extends(parent) :: child
end type
contains
subroutine do_something(this)
class(child) this
end
end
$ gfortran -fcoarray=single -c all.f90
all.f90: In function '__copy_parent_coarray_component_Child':
all.f90:9:0: internal compiler error: Segmentation fault: 11
class(child) this
^
all.f90:9:0: internal compiler error: Abort trap: 6
gfortran: internal compiler error: Abort trap: 6 (program f951)
Abort trap: 6
Damians-MacBook-Pro-2:coarrayBurgers rouson$ gfortran --version
GNU Fortran (MacPorts gcc48 4.8-20130321_0) 4.8.0 20130321 (prerelease)