- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Someone,
I wrote a module and its submodule, and defined a type with Bundling procedure in it, but I'll find a link error.
If I use the comment statements, I can run normally. Why is that?
The compiler is Intel(R) Visual Fortran Compiler 18.0.1.156[IA-32]
Module MyMod
Implicit None
Type , public :: T_My
contains
Procedure , nopass :: pubName => prvName
!Procedure , nopass :: prvName
!Generic :: pubName => prvName
End Type T_My
interface
Module Subroutine prvName()
End Subroutine prvName
end interface
End Module MyMod
SubModule(MyMod) MyModS
contains
Module Procedure prvName
write(*,*) "Hello"
End Procedure prvName
End SubModule MyModS
Program Main
use MyMod
Implicit None
type(T_My) :: my
call my%pubName()
End Program Main
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@gao l.,
It's a bug in the compiler which, to my understanding, got fixed in Intel Fortran 18.0 Update 2. Your code links and works as expected using Intel Fortran 18.0 Update 2, also Update 3, as well as 19.0 Beta Update 1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,The world looks much more reasonable.
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