From 294e16b4e7ef586619b92bf0f109448e7de31c6e Mon Sep 17 00:00:00 2001 From: Ed Schonberg Date: Wed, 2 Sep 2020 09:30:09 -0400 Subject: [PATCH] [Ada] Ignore container types for aggregates if not in Ada_2020 gcc/ada/ * sem_aggr.adb (Resolve_Aggregate): Do not call Resolve_Container_Aggregate if compilation version is earlier than Ada_2020. --- gcc/ada/sem_aggr.adb | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/ada/sem_aggr.adb b/gcc/ada/sem_aggr.adb index d6d0083b258..fdc27b30e00 100644 --- a/gcc/ada/sem_aggr.adb +++ b/gcc/ada/sem_aggr.adb @@ -901,6 +901,7 @@ package body Sem_Aggr is elsif Present (Find_Aspect (Typ, Aspect_Aggregate)) and then Ekind (Typ) /= E_Record_Type + and then Ada_Version >= Ada_2020 then Resolve_Container_Aggregate (N, Typ); -- 2.30.2