From: Piotr Trojanek Date: Mon, 15 Mar 2021 13:53:29 +0000 (+0100) Subject: [Ada] Remove dead code for overlapping actuals in prefix notation X-Git-Tag: upstream/12.2.0~7079 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c2886684f8263f5f63b15f358ce33bfc67d27ce;p=platform%2Fupstream%2Fgcc.git [Ada] Remove dead code for overlapping actuals in prefix notation gcc/ada/ * sem_warn.adb (Warn_On_Overlapping_Actuals): Remove dead branch for overlapping actuals in prefix notation. --- diff --git a/gcc/ada/sem_warn.adb b/gcc/ada/sem_warn.adb index e85f493..d612d53 100644 --- a/gcc/ada/sem_warn.adb +++ b/gcc/ada/sem_warn.adb @@ -3839,45 +3839,15 @@ package body Sem_Warn is or else Error_To_Warning; - -- If the call was written in prefix notation, and thus - -- its prefix before rewriting was a selected component, - -- count only visible actuals in call. - - if Is_Entity_Name (First_Actual (N)) - and then Nkind (Original_Node (N)) = Nkind (N) - and then Nkind (Name (Original_Node (N))) = - N_Selected_Component - and then - Is_Entity_Name (Prefix (Name (Original_Node (N)))) - and then - Entity (Prefix (Name (Original_Node (N)))) = - Entity (First_Actual (N)) - then - if Act1 = First_Actual (N) then - Error_Msg_FE - ("