aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-01-09 16:02:11 +0100
committerTristan Gingold <tgingold@free.fr>2022-01-09 16:02:11 +0100
commit25b0414a6bc1b713c404c316785625d530efaea4 (patch)
treef1ec43a6823c360b257b50252fce7703092350f2 /src/vhdl
parent359b7edb9be3912006758570f5a4fd207feba662 (diff)
downloadghdl-25b0414a6bc1b713c404c316785625d530efaea4.tar.gz
ghdl-25b0414a6bc1b713c404c316785625d530efaea4.tar.bz2
ghdl-25b0414a6bc1b713c404c316785625d530efaea4.zip
trans-chap2.adb: handle Kind_Component in Copy_Info. Fix #1943
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/translate/trans-chap2.adb9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vhdl/translate/trans-chap2.adb b/src/vhdl/translate/trans-chap2.adb
index 6d3ce89cb..222c9d852 100644
--- a/src/vhdl/translate/trans-chap2.adb
+++ b/src/vhdl/translate/trans-chap2.adb
@@ -1316,7 +1316,14 @@ package body Trans.Chap2 is
Mark => False,
Field_Node => Src.Field_Node,
Field_Bound => Src.Field_Bound);
-
+ when Kind_Component =>
+ Dest.all :=
+ (Kind => Kind_Component,
+ Mark => False,
+ Comp_Scope => Instantiate_Var_Scope (Src.Comp_Scope),
+ Comp_Ptr_Type => Src.Comp_Ptr_Type,
+ Comp_Link => Src.Comp_Link,
+ Comp_Rti_Const => Src.Comp_Rti_Const);
when Kind_Package =>
Dest.all :=
(Kind => Kind_Package,