summaryrefslogtreecommitdiff
path: root/sem_specs.adb
diff options
context:
space:
mode:
authorgingold2006-08-06 06:45:40 +0000
committergingold2006-08-06 06:45:40 +0000
commit63925c8de8d3171e6b258796e4d167524691490a (patch)
treea8e7971f5889da0b7bba2cd7f9624c704d0145df /sem_specs.adb
parent3841c37a946481815c89928ccd15b71b608aa526 (diff)
downloadghdl-63925c8de8d3171e6b258796e4d167524691490a.tar.gz
ghdl-63925c8de8d3171e6b258796e4d167524691490a.tar.bz2
ghdl-63925c8de8d3171e6b258796e4d167524691490a.zip
bugs fixed
Diffstat (limited to 'sem_specs.adb')
-rw-r--r--sem_specs.adb13
1 files changed, 9 insertions, 4 deletions
diff --git a/sem_specs.adb b/sem_specs.adb
index 1791081..cd86821 100644
--- a/sem_specs.adb
+++ b/sem_specs.adb
@@ -1264,15 +1264,20 @@ package body Sem_Specs is
(Parent_Stmts : Iir; Conf : Iir_Configuration_Specification)
is
Primary_Entity_Aspect : Iir;
+ Component : Iir;
begin
Sem_Component_Specification (Parent_Stmts, Conf, Primary_Entity_Aspect);
+ Component := Get_Component_Name (Conf);
+
+ -- Return now in case of error.
+ if Get_Kind (Component) /= Iir_Kind_Component_Declaration then
+ return;
+ end if;
-- Extend scope of component interface declaration.
Sem_Scopes.Open_Scope_Extension;
- Sem_Scopes.Add_Component_Declarations (Get_Component_Name (Conf));
+ Sem_Scopes.Add_Component_Declarations (Component);
Sem_Binding_Indication (Get_Binding_Indication (Conf),
- Get_Component_Name (Conf),
- Conf,
- Primary_Entity_Aspect);
+ Component, Conf, Primary_Entity_Aspect);
-- FIXME: check default port and generic association.
Sem_Scopes.Close_Scope_Extension;
end Sem_Configuration_Specification;