This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56765] [OOP] compilation errors/ICE with unlimited polymorphic array
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 31 Mar 2013 17:35:13 +0000
- Subject: [Bug fortran/56765] [OOP] compilation errors/ICE with unlimited polymorphic array
- Auto-submitted: auto-generated
- References: <bug-56765-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56765
--- Comment #4 from janus at gcc dot gnu.org 2013-03-31 17:35:13 UTC ---
Btw, this bug does not require unlimited polymorphism, but also shows up with
normal ('limited'?) CLASS definitions:
program t_limited
implicit none
type :: t
integer :: i = 0
end type
class(t), dimension(:), pointer :: u
u => sub()
contains
function sub() result(r)
class(t), dimension(:), pointer :: r
type(t), dimension(3), target :: x = t(1)
r => x
end function
end program