diff options
Diffstat (limited to 'gcc/ada/exp_ch7.adb')
| -rw-r--r-- | gcc/ada/exp_ch7.adb | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/exp_ch7.adb b/gcc/ada/exp_ch7.adb index 287b4efc792..426658564e2 100644 --- a/gcc/ada/exp_ch7.adb +++ b/gcc/ada/exp_ch7.adb @@ -706,6 +706,7 @@ package body Exp_Ch7 is                or else Ekind (E) = E_Constant)             and then Has_Simple_Protected_Object (Etype (E))             and then not Has_Task (Etype (E)) +           and then Nkind (Parent (E)) /= N_Object_Renaming_Declaration           then              declare                 Typ : constant Entity_Id := Etype (E);  | 

