1 ! RUN: %python %S/test_errors.py %s %flang_fc1
10 !Note: PGI, Intel, GNU, and NAG allow this; Sun does not
14 !WARNING: 'foo' should not be the name of both a generic interface and a procedure unless it is a specific procedure of the generic
25 !ERROR: Cannot use-associate 'foo'; it is already declared in this scope
30 !ERROR: Cannot use-associate 'bar'; it is already declared in this scope
34 !OK to use-associate a type with the same name as a generic
45 ! Can't have derived type and function with same name
50 !ERROR: 'foo' is already declared in this scoping unit
54 ! Even if there is also a generic interface of that name
58 !ERROR: 'foo' is already declared in this scoping unit
70 !ERROR: 'foo' is already declared in this scoping unit
76 ! Use associating a name that is a generic and a derived type
101 !ERROR: 'f6' is already declared in this scoping unit
110 !ERROR: 'f7' is already declared in this scoping unit
119 !ERROR: 'f8' is already declared in this scoping unit
128 !ERROR: 'f9' is already declared in this scoping unit
146 !ERROR: 'f10' is already declared in this scoping unit
159 !ERROR: 'f11' is already declared in this scoping unit
170 !ERROR: 'f12' is already declared in this scoping unit
181 !ERROR: 'f13' is already declared in this scoping unit
200 module procedure gen1
202 generic
:: gen2
=> gen2