This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55854] New: 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 03:00:24 +0000
- Subject: [Bug fortran/55854] New: ICE on intent(out) dummy argument with unlimited polymorphic component
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55854
Bug #: 55854
Summary: ICE on intent(out) dummy argument with unlimited
polymorphic component
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: damian@rouson.net
As demonstrated below, having an "intent(out)" dummy argument with an
unlimited polymorphic component generates an internal compiler error
with a December 23 build of gfortran 4.8:
$ cat ice_on_intent_out_with_unlimted.f90
type foo
class(*), allocatable :: x
end type
contains
subroutine bar(this)
type(foo), intent(out) :: this
end
end
$ gfortran ice_on_intent_out_with_unlimted.f90
ice_on_intent_out_with_unlimted.f90: In function 'bar':
ice_on_intent_out_with_unlimted.f90:5:0: internal compiler error:
Segmentation fault: 11
subroutine bar(this)
^
ice_on_intent_out_with_unlimted.f90:5: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)