https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77961
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pault at gcc dot gnu.org
--- Comment #9 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #8)
> Dropping target milestone.
This now works on gcc-16 & -17 with -fcoarray=lib -lcaf_shmem. All active
branches are OK with -coarray=single
program p
type t
end type
type t2
type(t), allocatable :: c(:)
end type
type(t2) :: x[*]
allocate (x%c(2), source=t())
call s(x)
contains
subroutine s(x)
class(*) :: x[*]
select type (y => x) ! ICE if 'x' used as associate name and selector
type is (t2)
print *, 'yes!', allocated (y%c)
class default
print *, 'no'
end select
end
end
Paul