host_assoc_function_2.f90
来自「用于进行gcc测试」· F90 代码 · 共 49 行
F90
49 行
! { dg-do compile }! Tests the fix for PR32464, where the use associated procedure would! mess up the check for "grandparent" host association.!! Contributed by Harald Anlauf <anlauf@gmx.de>!module gfcbug64_mod1 implicit none public :: inverse interface inverse module procedure copy end interfacecontains function copy (d) result (y) real, intent(in) :: d(:) real :: y(size (d)) ! <- this version kills gfortran! real, intent(in) :: d! real :: y y = d end function copyend module gfcbug64_mod1!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!module gfcbug64_mod2 implicit nonecontains subroutine foo (x_o) real, intent(in) :: x_o(:) integer :: s(size (x_o)) ! <- this line kills gfortran contains subroutine bar () use gfcbug64_mod1, only: inverse ! <- this line kills gfortran end subroutine bar end subroutine fooend module gfcbug64_mod2! { dg-final { cleanup-modules "gfcbug64_mod1 gfcbug64_mod2" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?