📄 host_used_types_1.f90
字号:
! { dg-do compile }! Tests the fix for PR25532, which was a regression introduced by! the fix for PR20244.!! Contributed by Erik Edelmann <eedelman@gcc.gnu.org>module ModelParams implicit none type ReionizationParams real :: fraction end type ReionizationParams type CAMBparams type(ReionizationParams) :: Reion end type CAMBparams type(CAMBparams) CPend module ModelParamsmodule ThermoData use ModelParams implicit nonecontains subroutine inithermo() use ModelParams if (0 < CP%Reion%fraction) then end if end subroutine inithermo! The bug expressed itself in this subroutine because the component type! information was not being copied from the parent namespace. subroutine SetTimeSteps if (0 < CP%Reion%fraction) then end if end subroutine SetTimeStepsend module ThermoData! { dg-final { cleanup-modules "ModelParams ThermoData" } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -