aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/translate/trans-chap3.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-08-11 21:15:01 +0200
committerTristan Gingold <tgingold@free.fr>2022-08-11 21:15:01 +0200
commit51a346d55f192046583773eb72b515c89c343d45 (patch)
tree7b8c496aa55654abdcdf39a9fcb4f7b577c2d08f /src/vhdl/translate/trans-chap3.adb
parentcdcbb258be1aefa2244b3a262863544d04d686f8 (diff)
downloadghdl-51a346d55f192046583773eb72b515c89c343d45.tar.gz
ghdl-51a346d55f192046583773eb72b515c89c343d45.tar.bz2
ghdl-51a346d55f192046583773eb72b515c89c343d45.zip
vhdl: add support for file subtype. Fix #2174
Diffstat (limited to 'src/vhdl/translate/trans-chap3.adb')
-rw-r--r--src/vhdl/translate/trans-chap3.adb8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vhdl/translate/trans-chap3.adb b/src/vhdl/translate/trans-chap3.adb
index 139a90f00..627ae2532 100644
--- a/src/vhdl/translate/trans-chap3.adb
+++ b/src/vhdl/translate/trans-chap3.adb
@@ -2541,6 +2541,11 @@ package body Trans.Chap3 is
Set_Info (Def, Get_Info (Get_Parent_Type (Def)));
end;
+ when Iir_Kind_File_Subtype_Definition =>
+ -- Same as parent.
+ Free_Info (Def);
+ Set_Info (Def, Get_Info (Get_Parent_Type (Def)));
+
when others =>
Error_Kind ("translate_subtype_definition", Def);
end case;
@@ -2792,7 +2797,8 @@ package body Trans.Chap3 is
Elab_Composite_Subtype_Layout (Def);
end if;
- when Iir_Kind_Access_Subtype_Definition =>
+ when Iir_Kind_Access_Subtype_Definition
+ | Iir_Kind_File_Subtype_Definition =>
null;
when others =>