aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_names.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-11-07 07:48:55 +0100
committerTristan Gingold <tgingold@free.fr>2017-11-07 07:48:55 +0100
commita08289c5ad4c904a1b16445ee35fb00c05f87b64 (patch)
tree9406b043b8a90c06f0136ab19b6fadc20a1ae161 /src/vhdl/sem_names.adb
parent06d553f9d32184ad71f47bbcfcde2528d40408ac (diff)
downloadghdl-a08289c5ad4c904a1b16445ee35fb00c05f87b64.tar.gz
ghdl-a08289c5ad4c904a1b16445ee35fb00c05f87b64.tar.bz2
ghdl-a08289c5ad4c904a1b16445ee35fb00c05f87b64.zip
Use flist for enumerations.
Diffstat (limited to 'src/vhdl/sem_names.adb')
-rw-r--r--src/vhdl/sem_names.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb
index dbb0e8143..98b7e01bb 100644
--- a/src/vhdl/sem_names.adb
+++ b/src/vhdl/sem_names.adb
@@ -3948,9 +3948,9 @@ package body Sem_Names is
and then Kind_In (Name, Iir_Kind_Simple_Name,
Iir_Kind_Character_Literal)
then
- Res := Find_Name_In_List (Get_Enumeration_Literal_List
- (Get_Base_Type (A_Type)),
- Get_Identifier (Name));
+ Res := Find_Name_In_Flist (Get_Enumeration_Literal_List
+ (Get_Base_Type (A_Type)),
+ Get_Identifier (Name));
if Res /= Null_Iir then
Error_Msg_Sem
(+Name, "enumeration literal %i is not visible "