[Bug fortran/104630] module subroutine not accessible from submodule
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 24 19:37:07 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104630
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to Neil Carlson from comment #0)
> Consider this minimal example.
>
> File module.f90:
> module modA
> private
I suspect you already found the work around.
Remove the private attribute.
> type, public :: typeA
> contains
> procedure :: foo
> end type
> interface
> module subroutine foo(this)
> class(typeA) :: this
> end subroutine
> end interface
> contains
> subroutine bar(this)
> type(typeA) :: this
> end subroutine
> end module
More information about the Gcc-bugs
mailing list