public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/51977] New: [OOP] MOVE_ALLOC: Bogus "must have the same rank 0/1" for same-rank arrays
@ 2012-01-24  8:57 burnus at gcc dot gnu.org
  2012-01-24 16:41 ` [Bug fortran/51977] " burnus at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-01-24  8:57 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-27 13:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-24  8:57 [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
2012-01-24 16:41 ` [Bug fortran/51977] " burnus at gcc dot gnu.org
2012-01-27 13:23 ` burnus at gcc dot gnu.org
2012-01-27 13:36 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).