Message ID | 20171009151908.GA113750@adacore.com |
---|---|
State | New |
Headers | show |
Series | [Ada] Detect protected types as program units | expand |
Index: sem_aux.adb =================================================================== --- sem_aux.adb (revision 253546) +++ sem_aux.adb (working copy) @@ -1693,6 +1693,7 @@ and then Nkind (N) /= N_Package_Renaming_Declaration and then Nkind (N) /= N_Procedure_Instantiation and then Nkind (N) /= N_Protected_Body + and then Nkind (N) /= N_Protected_Type_Declaration and then Nkind (N) /= N_Subprogram_Declaration and then Nkind (N) /= N_Subprogram_Body and then Nkind (N) /= N_Subprogram_Body_Stub