1 2 3 4 5 6 7 8 9 10 11 12 13 14
-- { dg-do compile } procedure type_conv is type Str is new String; generic package G is private end; package body G is Name : constant String := "it"; Full_Name : Str := Str (Name & " works"); end G; package Inst is new G; begin null; end;