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

Reply via email to