From 4ea624b0f9957a454467bfd0c856b87c90012cf4 Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Mon, 11 May 2020 18:21:29 +0200 Subject: [PATCH] [Ada] Remove extra checks for non-static context from resolving 'Update gcc/ada/ * sem_attr.adb (Resolve_Attribute): Do not call Check_Non_Static_Context. --- gcc/ada/sem_attr.adb | 3 --- 1 file changed, 3 deletions(-) diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index d2678110f65..b04b2313bcf 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -11999,13 +11999,10 @@ package body Sem_Attr is if Nkind (C) /= N_Aggregate then Analyze_And_Resolve (C, Etype (Indx)); - Check_Non_Static_Context (C); - else C_E := First (Expressions (C)); while Present (C_E) loop Analyze_And_Resolve (C_E, Etype (Indx)); - Check_Non_Static_Context (C_E); Next (C_E); Next_Index (Indx); -- 2.30.2