aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2015-05-12 22:25:01 +0200
committerTristan Gingold <tgingold@free.fr>2015-05-12 22:25:01 +0200
commit33f03734a662f8be74f19a813b7a4e4cb0b46626 (patch)
treeedda96f8362512917045a2001d75c4b6874ccb9d
parent75f247abf04876abd3d18c29ffe4750524ac5ed1 (diff)
downloadghdl-33f03734a662f8be74f19a813b7a4e4cb0b46626.tar.gz
ghdl-33f03734a662f8be74f19a813b7a4e4cb0b46626.tar.bz2
ghdl-33f03734a662f8be74f19a813b7a4e4cb0b46626.zip
do not consider function call as a prefix of expanded name.
Fix ticket 59.
-rw-r--r--src/vhdl/sem_names.adb8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb
index fe2b0e0b4..d7bb8c48b 100644
--- a/src/vhdl/sem_names.adb
+++ b/src/vhdl/sem_names.adb
@@ -1849,7 +1849,13 @@ package body Sem_Names is
for I in Natural loop
El := Get_Nth_Element (Prefix_List, I);
exit when El = Null_Iir;
- Sem_As_Expanded_Name (El);
+ case Get_Kind (El) is
+ when Iir_Kind_Function_Call =>
+ -- Not an expanded name.
+ null;
+ when others =>
+ Sem_As_Expanded_Name (El);
+ end case;
end loop;
-- If no expanded name are found, try as selected element.