2 ! { dg-options "-std=f95" }
7 ! "A common block name in a scoping unit also may be the name of any local
8 ! entity other than a named constant, intrinsic procedure, or a local variable
9 ! that is also an external function in a function subprogram."
12 ! "A name that identifies a common block in a scoping unit shall not be used
13 ! to identify a constant or an intrinsic procedure in that scoping unit. If
14 ! a local identifier is also the name of a common block, the appearance of
15 ! that name in any context other than as a common block name in a COMMON
16 ! or SAVE statement is an appearance of the local identifier."
18 function func1() result(res
)
21 common /res
/ r
! { dg-error "is also a function result" }