1 ! RUN: %python %S/test_errors.py %s %flang_fc1
3 !ERROR: Array 'x' without ALLOCATABLE or POINTER attribute must have explicit shape
9 !ERROR: 'y' is already in a COMMON block
14 !ERROR: 'x' may not be a procedure as it is in a COMMON block
18 !ERROR: 'y' may not be a procedure as it is in a COMMON block
24 !ERROR: The dimensions of 'x' have already been declared
26 !ERROR: The dimensions of 'y' have already been declared
30 function f6(x
) result(r
)
31 !ERROR: ALLOCATABLE object 'y' may not appear in a COMMON block
32 !ERROR: Dummy argument 'x' may not appear in a COMMON block
35 !ERROR: Function result 'r' may not appear in a COMMON block
40 !ERROR: Variable 'w' with BIND attribute may not appear in a COMMON block
41 !ERROR: Variable 'z' with BIND attribute may not appear in a COMMON block
44 integer, bind(c
,name
="w") :: w
50 class(*), pointer :: x
51 !ERROR: Unlimited polymorphic pointer 'x' may not appear in a COMMON block
52 !ERROR: Unlimited polymorphic pointer 'y' may not appear in a COMMON block
54 class(*), pointer :: y
62 !ERROR: 'x' is use-associated from module 'm9' and cannot be re-declared
70 !ERROR: Derived type 'x' in COMMON block must have the BIND or SEQUENCE attribute
77 integer, allocatable
:: a
85 !ERROR: Derived type variable 'x2' may not appear in a COMMON block due to ALLOCATABLE component
100 !ERROR: Derived type variable 'x2' may not appear in a COMMON block due to component with default initialization
106 !ERROR: COMMON statement is not allowed in a BLOCK construct
112 !ERROR: 'c' appears as a COMMON block in a BIND statement but not in a COMMON statement