aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/exp_util.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/exp_util.adb')
-rw-r--r--gcc/ada/exp_util.adb8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/exp_util.adb b/gcc/ada/exp_util.adb
index a0c641b..a3e09a6 100644
--- a/gcc/ada/exp_util.adb
+++ b/gcc/ada/exp_util.adb
@@ -4844,8 +4844,12 @@ package body Exp_Util is
-- expression (and hence we would generate a never-ending loop in the
-- front end).
- if Is_Class_Wide_Type (Exp_Type)
- and then Nkind (Parent (Exp)) = N_Object_Renaming_Declaration
+ -- For now, disable this test. class-wide renamings can have side
+ -- effects, and this test causes such side effects to be duplicated.
+ -- To be sorted out later ???
+
+ if False and then Is_Class_Wide_Type (Exp_Type)
+ and then Nkind (Parent (Exp)) = N_Object_Renaming_Declaration
then
return;
end if;