- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following code leads to an internal compiler error with Intel(R) Visual Fortran Compiler 19.1.3.311 [Intel(R) 64]
program test
implicit none
integer, parameter :: n=10
real :: x(n)
integer :: inds(n),i
inds=[(i,i=1,10)]
x=0
x(inds(nint(.15*n):))=x(inds(nint(.15*n):))+1
end program test
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ICE also occurs with 2021.3.0 on Windows (ifort as well as ifx). Here is a work around:
i = nint(.15*n)
x(inds(i:))=x(inds(i:))+1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Ulrich_M_ Thanks for reporting this ICE.
@mecej4 Thanks for the workaround!
I filed a bug report, CMPLRIL0-34036, against both ifort and ifx. I'll let you know its progress to a fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just checked this issue with the latest ifort release 2021.6.0. The ICE you reported is gone.
This version of ifort is part of oneAPI 2022.2 that was recently released.
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