summaryrefslogtreecommitdiff
path: root/gcc/ada/freeze.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/freeze.adb')
-rw-r--r--gcc/ada/freeze.adb9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/ada/freeze.adb b/gcc/ada/freeze.adb
index 5df4c727194..291a9f3bedf 100644
--- a/gcc/ada/freeze.adb
+++ b/gcc/ada/freeze.adb
@@ -562,12 +562,9 @@ package body Freeze is
Check_Constant_Address_Clause (Expr, E);
-- Has_Delayed_Freeze was set on E when the address clause was
- -- analyzed. Reset the flag now unless freeze actions were
- -- attached to it in the mean time.
-
- if No (Freeze_Node (E)) then
- Set_Has_Delayed_Freeze (E, False);
- end if;
+ -- analyzed, and must remain set because we want the address
+ -- clause to be elaborated only after any entity it references
+ -- has been elaborated.
end if;
-- If Rep_Clauses are to be ignored, remove address clause from