[Bug fortran/46370] New: [OOP] ALLOCATE: Error allocating CLASS coarrays

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 8 14:57:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46370

           Summary: [OOP] ALLOCATE: Error allocating CLASS coarrays
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: janus@gcc.gnu.org


Based on the test case at http://j3-fortran.org/doc/meeting/193/10-209r1.txt

The following program (compile with "-fcoarray=single") is rejected with:

allocate (t :: a[*])
                 1
Error: Unexpected coarray designator at (1)


It works with TYPE instead of CLASS.

type t
end type t
class(t), allocatable :: a[:]
allocate (t :: a)
end



More information about the Gcc-bugs mailing list