1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Test name conflicts with type-bound generics
8 procedure
, nopass
:: tbp
=> sub
11 type, extends(base1
) :: ext1
13 procedure
, nopass
:: sub
14 !ERROR: Type parameter, component, or procedure binding 'base1' already defined in this type
15 generic
:: base1
=> sub
16 !ERROR: Type bound generic procedure 'k' may not have the same name as a non-generic symbol inherited from an ancestor type
18 !ERROR: Type bound generic procedure 'x' may not have the same name as a non-generic symbol inherited from an ancestor type
20 !ERROR: Type bound generic procedure 'tbp' may not have the same name as a non-generic symbol inherited from an ancestor type
22 generic
:: gen
=> sub
! ok