| 1 |
! { dg-do compile } |
| 2 |
! PR fortran/108454 |
| 3 |
! |
| 4 |
! Contributed by G.Steinmetz |
| 5 |
|
| 6 |
module m |
| 7 |
type t |
| 8 |
end type |
| 9 |
contains |
| 10 |
subroutine s |
| 11 |
common t |
| 12 |
end |
| 13 |
end |
| 14 |
|
| 15 |
module m2 |
| 16 |
implicit none |
| 17 |
type t |
| 18 |
end type |
| 19 |
contains |
| 20 |
subroutine s |
| 21 |
real :: t |
| 22 |
common /com/ t |
| 23 |
end |
| 24 |
end |
| 25 |
|
| 26 |
module m3 |
| 27 |
type t |
| 28 |
end type |
| 29 |
contains |
| 30 |
subroutine s |
| 31 |
type(t) :: x ! { dg-error "cannot be host associated at .1." } |
| 32 |
common t ! { dg-error "incompatible object of the same name" } |
| 33 |
end |
| 34 |
end |