Debian Codegraph @

gcc/testsuite/gfortran.dg/pr95710.f90

raw
1 ! { dg-do compile }
2 ! PR fortran/95710 - ICE on duplicate declaration of class variable
3 ! Contributed by G.Steinmetz
4
5 module m
6 interface
7 module function s()
8 end
9 end interface
10 end
11 submodule(m) m2
12 contains
13 module function s()
14 class(*), allocatable :: x
15 class(*), allocatable :: x ! { dg-error "Unclassifiable statement" }
16 end
17 end