aboutsummaryrefslogtreecommitdiffstats
path: root/ortho/mcode/ortho_code-decls.adb
diff options
context:
space:
mode:
Diffstat (limited to 'ortho/mcode/ortho_code-decls.adb')
-rw-r--r--ortho/mcode/ortho_code-decls.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ortho/mcode/ortho_code-decls.adb b/ortho/mcode/ortho_code-decls.adb
index 44a2595f5..0a8b02cf3 100644
--- a/ortho/mcode/ortho_code-decls.adb
+++ b/ortho/mcode/ortho_code-decls.adb
@@ -322,6 +322,7 @@ package body Ortho_Code.Decls is
procedure New_Const_Value (Cst : O_Dnode; Val : O_Cnode) is
begin
if Dnodes.Table (Cst).Info2 /= 0 then
+ -- Value was already set.
raise Syntax_Error;
end if;
Dnodes.Table (Cst).Info2 := Int32 (Val);