Message ID | 20170907100927.GA69543@adacore.com |
---|---|
State | New |
Headers | show |
Series | [Ada] Return raise with access class-wide interface | expand |
Index: sem_ch6.adb =================================================================== --- sem_ch6.adb (revision 251835) +++ sem_ch6.adb (working copy) @@ -910,7 +910,7 @@ if Expander_Active and then Serious_Errors_Detected = 0 and then Is_Access_Type (R_Type) - and then Nkind (Expr) /= N_Null + and then not Nkind_In (Expr, N_Null, N_Raise_Expression) and then Is_Interface (Designated_Type (R_Type)) and then Is_Progenitor (Designated_Type (R_Type), Designated_Type (Etype (Expr)))