From 4e54d69b665d434bc3d74c0f8ebb2993a5539ffd Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Thu, 31 Dec 2020 13:11:00 +0100 Subject: [PATCH] [Ada] Replace call with a reference to a local constant gcc/ada/ * sem_ch4.adb (Try_Object_Operation): Reuse local constant. --- gcc/ada/sem_ch4.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/sem_ch4.adb b/gcc/ada/sem_ch4.adb index 77f2812ba38..a96ce9ff8f0 100644 --- a/gcc/ada/sem_ch4.adb +++ b/gcc/ada/sem_ch4.adb @@ -10223,7 +10223,7 @@ package body Sem_Ch4 is if Serious_Errors_Detected = 0 then Error_Msg_NE ("cannot resolve prefixed call to primitive operation of&", - N, Entity (Prefix (N))); + N, Entity (Obj)); end if; end if;