[Ada] AI12-0095 Formal types and Constrained Partial Views
commit84d7433afffe536bac912082e076d257a0173a1e
authorGary Dismukes <dismukes@adacore.com>
Thu, 20 Aug 2020 23:14:43 +0000 (20 19:14 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 22 Oct 2020 12:11:24 +0000 (22 08:11 -0400)
tree771decc5bed9e60b38f2dbe58809991ee3d3f779
parent29f2d76c65e175e18305b92f56be40c2266e9c78
[Ada] AI12-0095 Formal types and Constrained Partial Views

gcc/ada/

* einfo.adb (Has_Constrained_Partial_View): Apply Base_Type to Id.
* sem_res.adb (Resolve_Actuals.Check_Aliased_Parameter): Remove
"not Is_Generic_Type" test and call
Object_Type_Has_Constrained_Partial_View instead of
Has_Constrained_Partial_View. Improve related error message to
say "does not statically match" instead of just "does not
match".
gcc/ada/einfo.adb
gcc/ada/sem_res.adb