summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr32535.f90
blob: 4cfe94156d670cbe0369ae187867fb4296831ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
! { dg-do compile }
! { dg-require-visibility "" }
!
! PR32535: namelist with private items contained in sub-sub-procedure of a module rejected
!
! Contributed by Janus Weil <jaydub66@gmail.com> 

module mo
implicit none
real, private:: a,b,c

contains

  subroutine sub
    implicit none
    namelist /nl1/ a,b,c

    contains

    subroutine subsub
      implicit none
      namelist /nl2/ a,b,c
    end subroutine subsub
  end subroutine sub
end module mo