1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Derived type parameters
3 ! C731 The same type-param-name shall not appear more than once in a given
5 ! C741 A type-param-name in a type-param-def-stmt in a derived-type-def shall
6 ! be one of the type-paramnames in the derived-type-stmt of that
8 ! C742 Each type-param-name in the derived-type-stmt in a derived-type-def
9 ! shall appear exactly once as a type-param-name in a type-param-def-stmt
10 ! in that derived-type-def.
13 !ERROR: Type parameter, component, or procedure binding 'a' already defined in this type
18 !ERROR: No definition found for type parameter 'b'
23 !ERROR: No definition found for type parameter 'b'
26 !ERROR: Component 'b' is already declared in this derived type
31 !ERROR: 'd' is not a parameter of this derived type
37 !ERROR: Type parameter 'a' was already declared in this derived type
40 !ERROR: No definition found for type parameter 'k'
41 !ERROR: No definition found for type parameter 'l'
43 !ERROR: Type parameter 'k' was referenced before being declared
44 !ERROR: Type parameter 'l' was referenced before being declared
45 character(kind
=k
, len
=l
) :: d3
49 !ERROR: Type parameter 'k2' was referenced before being declared
50 integer(kind(k2
)), kind
:: k1
51 integer(kind(k1
)), kind
:: k2