| 1 |
! { dg-do compile } |
| 2 |
! { dg-options "-std=f2018" } |
| 3 |
! PR fortran/111880 - redundant warning of obsolescent COMMON with submodule |
| 4 |
|
| 5 |
module third_party_module |
| 6 |
integer :: some_param |
| 7 |
common /not_my_code/ some_param ! { dg-warning "COMMON block" } |
| 8 |
end module third_party_module |
| 9 |
|
| 10 |
module foo |
| 11 |
use third_party_module |
| 12 |
interface |
| 13 |
module subroutine bar() |
| 14 |
end subroutine bar |
| 15 |
end interface |
| 16 |
end module foo |
| 17 |
|
| 18 |
submodule (foo) foo_submod ! We do not need a warning here! |
| 19 |
contains |
| 20 |
module procedure bar |
| 21 |
end procedure bar |
| 22 |
end submodule foo_submod |