- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Platform: win10
compiler: parallel_studio_xe_2020_update4_cluster_edition
Try the following codes:
!=========================
program main
implicit none
type T
integer, allocatable :: ia(:)
end type T
integer, parameter :: n = 5
integer :: i
type(T) :: Tt
! <<< Body >>>
allocate(Tt%ia(1:n), source=[(i,i=1,n)])
associate(ta => Tt%ia([1,3]))
write(*,*) ta
end associate
end program main
!=======================
! It got into trouble with intel fortran. However, gfortran works well.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ifort 2021.1 also produces ICE. Ifx, on the other hand, builds an EXE that runs correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for reporting this. I duplicated the problem and filed a bug on your behalf, CMPLRIL0-33522. I'll watch it and let you know when it is fixed.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page