Debian Codegraph @

gcc/testsuite/gfortran.dg/pr88299.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-std=f2018" }
3 !
4 ! PR 85839: [F18] COMMON in a legacy module produces bogus warnings
5 ! in dependent code
6
7 module legacy
8 integer :: major, n
9 common /version/ major ! { dg-warning "obsolescent feature" }
10 public :: n
11 private
12 end module legacy
13
14 module mod1
15 use legacy, only: n ! No warning expected here
16 end module mod1