namelist_34.f90

来自「用于进行gcc测试」· F90 代码 · 共 31 行

F90
31
字号
! { dg-do compile }!! PR fortran/32905 - accepts types with ultimate POINTER components!MODULE types  type :: tp3    real :: x    integer, pointer :: i  end type  type :: tp2    type(tp3) :: t  end type  type :: tp1    integer :: i    type(tp2) :: t  end typeEND MODULEMODULE nmlUSE types   type(tp1) :: t1   type(tp3) :: t3   namelist /a/ t1    ! { dg-error "cannot have POINTER components" }   namelist /b/ t3    ! { dg-error "cannot have POINTER components" }END MODULE! { dg-final { cleanup-modules "types nml" } }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?