[Bug fortran/47728] New: Assigning an object of one type to a class variable leads to an ICE
arjen.markus at deltares dot nl
gcc-bugzilla@gcc.gnu.org
Mon Feb 14 09:00:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47728
Summary: Assigning an object of one type to a class variable
leads to an ICE
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: arjen.markus@deltares.nl
The following program produces an internal compiler error:
program test_objects
implicit none
type, abstract :: shape
end type
type, extends(shape) :: rectangle
real :: width, height
end type
class(shape), dimension(2) :: object
object(1) = rectangle( 1.0, 2.0 )
end program test_objects
There is no indication as to what is wrong with the program
(as Janus, who reduced my original program to this minimal one, remarks:
there are at least two)
More information about the Gcc-bugs
mailing list