- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I recently moved a code from ifc2017 to the most recent ifc2022 version.
I was able to fix some compatibility issues related to the Fortran2018 standard. However the last issue encountered seems to be out of scope. Here is a minimal example that leads to the error:
Module ModuleList
implicit none
type list(n)
integer,len :: n
integer :: items(n)
end type list
contains
subroutine somefunction( n, myList)
integer,intent(in) :: n
type(list(n)) :: myList
end subroutine somefunction
end Module ModuleList
subroutine somefunction2(n)
use ModuleList
implicit none
integer, intent(in) :: n
type(list(n)) :: myList
end subroutine somefunction2
program main
end program main
Is it purely a compiler related issue, or, the code is not correctly written but the error is not caught properly? Unfortunately, my knowledges in Fortran and the use of derived data type are quite limited. The code is compiling fine with ifc2017.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This ICE is fixed in the latest compiler release, ifort 2021.9.0 and ifx 2023.1.0. Both compilers are included in oneAPI HPC Toolkit 2023.1.
Please check it out!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your code is fine - the compiler is in error. I tried the newer ifx compiler, and it was also unhappy (not an ICE, but a complaint of unimplemented feature.) NAG Fortran compiles it without issue (other than remarking on unused variables.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I filed a bug report, CMPLRIL0-34715, on this ICE.
Thanks for the tip that it used to compile ok. It first starts failing with 19.1.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the tests. Haven't thought about switching the compiler.
Thanks for the report. Is there a way to follow it up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, Thanks. I will wait for the fix to validate this topic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Any news about this topic ? Is a fix available ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No resolution yet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This ICE is fixed in the latest compiler release, ifort 2021.9.0 and ifx 2023.1.0. Both compilers are included in oneAPI HPC Toolkit 2023.1.
Please check it out!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Barbara,
I checked the recent fix and I confirm that everything is working fine now.
Thank you !
I will close this issue.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page