aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-parse.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/vhdl-parse.adb')
-rw-r--r--src/vhdl/vhdl-parse.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-parse.adb b/src/vhdl/vhdl-parse.adb
index e958b8f09..726e8e1f4 100644
--- a/src/vhdl/vhdl-parse.adb
+++ b/src/vhdl/vhdl-parse.adb
@@ -9617,6 +9617,9 @@ package body Vhdl.Parse is
return Res;
when Tok_Generic | Tok_Port =>
-- or a component instantiation.
+ if Get_Kind (Target) not in Iir_Kinds_Denoting_Name then
+ Error_Msg_Parse (+Target, "component name expected");
+ end if;
return Parse_Component_Instantiation (Target);
when others =>
-- Catch PSL clock declaration. Within comments, this is the