blob: 03f1ff15a18bc7fe5960c9cfed65f2cca2d978ed [file] [log] [blame]
! { dg-do compile }
!
! PR 58355: [4.7/4.8/4.9 Regression] [F03] ICE with TYPE, EXTENDS before parent TYPE defined
!
! Contributed by Andrew Benson <abensonca@gmail.com>
module ct
public :: t1
type, extends(t1) :: t2 ! { dg-error "has not been previously defined" }
type :: t1
end type
end