2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_43.f03
blob86aa0e3c1439e39dc948bfe629861eed594074fa
1 ! { dg-do compile }
3 ! PR 49417: [4.6/4.7 Regression] [OOP] ICE on invalid CLASS component declaration
5 ! Contributed by Andrew Benson <abenson@its.caltech.edu>
7  type :: nodeWrapper
8  end type nodeWrapper
10  type, extends(nodeWrapper) :: treeNode
11     class(nodeWrapper) :: subComponent   ! { dg-error "must be allocatable or pointer" }
12  end type treeNode
14 end