Message ID | 20171108165250.GA137694@adacore.com |
---|---|
State | New |
Headers | show |
Series | [Ada] Accessibility violation flagged on anonymous access component | expand |
Index: exp_ch4.adb =================================================================== --- exp_ch4.adb (revision 254542) +++ exp_ch4.adb (working copy) @@ -11279,6 +11279,7 @@ elsif In_Instance_Body and then Ekind (Operand_Type) = E_Anonymous_Access_Type and then Nkind (Operand) = N_Selected_Component + and then Ekind (Entity (Selector_Name (Operand))) = E_Discriminant and then Object_Access_Level (Operand) > Type_Access_Level (Target_Type) then