4 type T_Root
(Root_Disc
: Natural) is record
8 type T_Derived
(deriv_disc
: Natural) is
9 new T_Root
(root_disc
=> deriv_disc
);
11 Derived
: T_Derived
(Deriv_Disc
=> 3);
14 procedure Do_Test
(Obj
: T_Derived
) is
16 Value
:= Obj
.root_disc
; -- { dg-error "no selector \"root_disc\" for type \"T_Derived\" defined at line \\d+" }