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: unassig...@gcc.gnu.org ReportedBy: bur...@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