https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98156

            Bug ID: 98156
           Summary: [Coarray] alloc_comp_1.f90 tests for wrong condition
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org
  Target Milestone: ---

alloc_comp_1.f90 has

! { dg-do run }
!
! Allocatable scalar corrays were mishandled (ICE)
!
type t
  integer, allocatable :: caf[:]
end type t
type(t) :: a
allocate (a%caf[3:*])
a%caf = 7
if (a%caf /= 7) STOP 1
print *,ucobound(a%caf,dim=1)
if (any (lcobound (a%caf) /= [ 3 ]) &
    .or. ucobound (a%caf, dim=1) /= this_image ()+2)  &
  STOP 2
deallocate (a%caf)
end

The second test about ucobound is clearly bogus - it should be
num_images() instead of this_image().

Reply via email to