- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using VS2026+oneapi2025.3.1. Here is the code
module BBB
implicit none
type B
integer :: ccc=1
real(8) :: ddd=2
end type B
end module BBB
module A
use BBB
implicit none
type AA
character(len=100) :: title=""
type(B) :: bb
contains
procedure,pass :: setB
end type AA
interface
module subroutine setB(self)
class(AA),intent(inout) :: self
end subroutine setB
end interface
contains
module subroutine setB(self)
class(AA),intent(inout) :: self
self%bb%ccc=2
self%bb%ddd=4.0
end subroutine setB
end module A
program Console1
use A
implicit none
type(AA) :: ab
call ab%setB()
print *, 'Hello World'
end program Console1
I can not see the member variable of "self%bb" that is “ccc" and "ddd", like following
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried your program in the VS 2022 with the latest IFX, I could single step through all of the code and watch as the values changed.
The 1 and 2 changed to 2 and 4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may try it again without VS extension Intel® Fortran Expression Evaluator. The latest OneAPI HPC Toolkit does not include FEE, so I think it should work without FEE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I only install VS the latest and oneapi the latest and it always has FEE and you can download FEE for free and install same.
As shown
Reinstall vs 2022 and select everything in the boxes, then install oneapi, make sure you delete everything first and then it might work. Of course you can look up the minimum VS boxes, there are lots of notes about that around, but mine just copies it from the last install.
Check your extensions. If you are using anything else I cannot help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A direct upgrade from an older version of the HPC Toolkit will not remove the FEE. However, if you uninstall the older version of the HPC Toolkit first and then install the new version, the FEE will not be installed automatically. In my case, I completely uninstalled VS2022 and the HPC Toolkit first, then reinstalled VS2026 along with the latest version of the HPC Toolkit. The FEE was not installed automatically in this scenario. Should I roll back to VS2022?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use the extensions manager in VS 2022 to find and load the FEE. Look for manage extensions.
But I have never loaded FEE, it is always installed when I load OneAPI as I do that on a lot of machines. There are five on my desk with it on.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page