aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/synth/synth-decls.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/synth/synth-decls.adb b/src/synth/synth-decls.adb
index 2eb9897d7..2e6426ed5 100644
--- a/src/synth/synth-decls.adb
+++ b/src/synth/synth-decls.adb
@@ -457,10 +457,13 @@ package body Synth.Decls is
end if;
-- Initialize the value (except for a deferred declaration).
if Deferred_Decl = Null_Node then
+ -- A normal constant declaration
First_Decl := Decl;
elsif not Get_Deferred_Declaration_Flag (Decl) then
+ -- The full declaration of a deferred constant.
First_Decl := Deferred_Decl;
else
+ -- The first declaration of a deferred constant.
First_Decl := Null_Node;
end if;
if First_Decl /= Null_Node then