aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem_names.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/vhdl-sem_names.adb')
-rw-r--r--src/vhdl/vhdl-sem_names.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb
index 566932049..28bfcaab4 100644
--- a/src/vhdl/vhdl-sem_names.adb
+++ b/src/vhdl/vhdl-sem_names.adb
@@ -4830,6 +4830,10 @@ package body Vhdl.Sem_Names is
end if;
end if;
+ if Get_Kind (Expr) = Iir_Kind_Enumeration_Literal then
+ Set_Use_Flag (Expr, True);
+ end if;
+
return Res;
end if;
when Iir_Kind_Function_Call