[Bug fortran/51977] New: [OOP] MOVE_ALLOC: Bogus "must have the same rank 0/1" for same-rank arrays
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 24 08:57:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51977
Bug #: 51977
Summary: [OOP] MOVE_ALLOC: Bogus "must have the same rank 0/1"
for same-rank arrays
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: burnus@gcc.gnu.org
Split off from PR 51948.
The following fails at move_alloc with a bogus error:
Error: the 'from' and 'to' arguments of 'move_alloc' intrinsic at (1)
must have the same rank 0/1
type t
end type t
contains
function func(x)
class(t), allocatable :: x(:), func(:)
call move_alloc (x, func)
end function
end
More information about the Gcc-bugs
mailing list