[Bug fortran/104630] module subroutine not accessible from submodule

2023-06-30 Thread daryl.00179 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104630

Pablo  changed:

   What|Removed |Added

 CC||daryl.00179 at gmail dot com

--- Comment #3 from Pablo  ---
This issue is still present in v13.1.0. And it has also been reported in bug
#88632.

[Bug fortran/104630] module subroutine not accessible from submodule

2022-11-16 Thread jwmwalrus at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104630

--- Comment #2 from John  ---
This issue is still in v12.2.0.

[Bug fortran/104630] module subroutine not accessible from submodule

2022-05-24 Thread kargl at gcc dot gnu.org via Gcc-bugs
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