common_8.f90

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

F90
33
字号
! { dg-do compile }!! PR fortran/25062!! F2003: 16.2.1! "A name that identifies a common block in a scoping unit shall not be used !  to identify a constant or an intrinsic procedure in that scoping unit."!subroutine try implicit none COMMON /s/ J COMMON /bar/ I INTEGER I, J real s, x s(x)=sin(x) print *, s(5.0) call bar()contains subroutine bar   print *, 'Hello world' end subroutine barend subroutine tryprogram test implicit none COMMON /abs/ J ! { dg-error "is also an intrinsic procedure" } intrinsic :: abs INTEGER J external try call tryend program test

⌨️ 快捷键说明

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