2 ! Some errors pointed out in the development of the patch.
4 ! Contributed by Tobias Burnus <burnus@net-b.de>
19 type, extends(date) :: datetime
20 integer :: hr, min, sec
22 type(datetime) :: o_dt
28 type, extends(one) :: two
32 o_dt%day = 5 ! VALID but failed in first version of EXTENDS patch
33 o_dt%yr = 5 ! { dg-error "is a PRIVATE component of" }
35 t = two(one = one(4), i = 5, r=4.4) ! { dg-error "has already been set" }
40 use m, date_type => dt
41 type, extends(date_type) :: dt_type
43 type (dt_type) :: foo_dt
44 foo_dt%date_type%day = 1
45 foo_dt%dt%day = 1 ! { dg-error "not a member" }