From 78287696dc5f788b28f8541c93809e002f722f81 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Mon, 2 Nov 2020 06:21:45 -0500 Subject: [PATCH] [Ada] Fix tree for expanded instantiations corresponding to formal packages gcc/ada/ * sem_ch12.adb (Instantiate_Object): Consistently use New_Copy_Tree instead of New_Copy. --- gcc/ada/sem_ch12.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/sem_ch12.adb b/gcc/ada/sem_ch12.adb index 20a00d7be9e..6a32bdca1ca 100644 --- a/gcc/ada/sem_ch12.adb +++ b/gcc/ada/sem_ch12.adb @@ -11567,7 +11567,7 @@ package body Sem_Ch12 is -- Use default to construct declaration if Present (Subt_Mark) then - Def := New_Copy (Subt_Mark); + Def := New_Copy_Tree (Subt_Mark); else pragma Assert (Present (Acc_Def)); Def := New_Copy_Tree (Acc_Def); -- 2.30.2