3 ! PR 47728: [OOP] ICE on invalid CLASS declaration
5 ! Contributed by Arjen Markus <arjen.markus@deltares.nl>
11 type, abstract :: shape
14 type, extends(shape) :: rectangle
18 class(shape), dimension(2) :: object ! { dg-error "must be dummy, allocatable or pointer" }
20 object(1) = rectangle( 1.0, 2.0 ) ! { dg-error "Unclassifiable statement" }
22 end program test_objects