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

            Bug ID: 65397
           Summary: [Coarrays][OOP] ICE in resolve_ordinary_assign
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org

The following valid program ICEs with -fcoarray=lib in resolve_ordinary_assign.

subroutine five
implicit none
type t
  integer, pointer :: a
  integer :: b
end type t
type t2
  class(t), allocatable :: caf2[:]
end type t2
class(t), save, allocatable :: caf[:]
type(t) :: x
type(t2) :: y

x = caf[4]     ! <<<< ICE
x = y%caf2[5]  ! <<<< ICE
end subroutine five

Reply via email to