generic_6.f90
来自「用于进行gcc测试」· F90 代码 · 共 50 行
F90
50 行
! { dg-do compile }! Tests the patch for PR28873, in which the call create () would cause an! error because resolve.c(resolve_generic_s) was failing to look in the! parent namespace for a matching specific subroutine. This, in fact, was! a regression due to the fix for PR28201.!! Contributed by Drew McCormack <drewmccormack@mac.com> !module A private interface create module procedure create1 end interface public :: createcontains subroutine create1 print *, "module A" end subroutineend modulemodule B private interface create module procedure create1 end interface public :: createcontains subroutine create1(a) integer a print *, "module B" end subroutineend modulemodule C use A private public useCreatecontains subroutine useCreate use B call create() call create(1) end subroutineend module use c call useCreateend! { dg-final { cleanup-modules "A B C" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?