(From the Debian BTS): procedure Test_306835 is generic type T1 is private; package pak1 is type T2 is array(1..10) of aliased T1; end pak1; type T3 (b: Boolean := False) is null record; package new_pak1 is new pak1 (T1 => T3); --ERROR: T3 unconstrained begin null; end Test_306835; the compiler says nothing when it should detect the error. -- Ludovic Brenta.
Confirmed.
This is now handled properly (has been for a long time actually). In Ada 95 mode, the code is rejected: test_306835.adb:9:04: instantiation error at line 5 test_306835.adb:9:04: aliased component type must be constrained (RM 3.6(11)) and in Ada 2005 mode (the default) the code is accepted, as per AI 363