This type of issue has been around for a while in various guises and I guess the root causes are varied. Anyway a simple reproducer for the new release that is a problem in IFX and not in IFORT. It makes debugging rather difficult in IFX. Using Microsoft Visual Studio Community 2022 (64-bit)
Version 17.0.5.
module fred
implicit none (type, external)
contains
subroutine sub1( gchar )
character(*), intent(in) :: gchar
print *, gchar
end subroutine sub1
end module fred
program undef_err
use fred, only: sub1
implicit none (type, external)
character(80) :: gchar
gchar = 'Hello World'
call sub1( gchar )
end program undef_err
連結已複製
Interesting but this problem I suspect is not simply down to VS version it could be an interaction with a combination of integration settings within VS. These sort of problems seem to come and go. It is interesting that it works in IFORT but not IFX. A workaround for now is to use IFORT rather than updating VS which for me is a version of Russian Roulette. I would hope someone at Intel would look at this as a problem is never truly fixed until you fully understand the root cause.