PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_generic_15.f90
blob2cff16d1995029cf73d9a9d04ca67751bad8d6a4
1 ! { dg-do compile }
3 ! PR 60231: [4.8/4.9 Regression] ICE on undefined generic
5 ! Contributed by Antony Lewis <antony@cosmologist.info>
7 module Objects
9 Type TObjectList
10 contains
11 procedure :: Add1 ! { dg-error "must be a module procedure" }
12 procedure :: Add2 ! { dg-error "must be a module procedure" }
13 generic :: Add => Add1, Add2 ! { dg-error "are ambiguous" }
14 end Type
16 end module