blob: 566c38d0a9d0e878075269d8cd225c5493849437 [file] [log] [blame]
! { dg-do compile }
! PR fortran/95710 - ICE on duplicate declaration of class variable
! Contributed by G.Steinmetz
module m
interface
module function s()
end
end interface
end
submodule(m) m2
contains
module function s()
class(*), allocatable :: x
class(*), allocatable :: x ! { dg-error "Unclassifiable statement" }
end
end