aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-sem_decls.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-06-30 18:41:32 +0200
committerTristan Gingold <tgingold@free.fr>2020-06-30 19:34:50 +0200
commitaedbcc715e099335d28e1e06934e75263bd335e9 (patch)
treee360d3edab22d7fe2ab0ed8fe2bdef06bfe1e979 /src/vhdl/vhdl-sem_decls.adb
parente2d751d624eb1319e654d9504b36d43eff65c8fb (diff)
downloadghdl-aedbcc715e099335d28e1e06934e75263bd335e9.tar.gz
ghdl-aedbcc715e099335d28e1e06934e75263bd335e9.tar.bz2
ghdl-aedbcc715e099335d28e1e06934e75263bd335e9.zip
vhdl-nodes: make Subtype_Indication Maybe_Ref. For #641
Diffstat (limited to 'src/vhdl/vhdl-sem_decls.adb')
-rw-r--r--src/vhdl/vhdl-sem_decls.adb2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_decls.adb b/src/vhdl/vhdl-sem_decls.adb
index ffb55d0a7..6dca7e9d5 100644
--- a/src/vhdl/vhdl-sem_decls.adb
+++ b/src/vhdl/vhdl-sem_decls.adb
@@ -235,8 +235,10 @@ package body Vhdl.Sem_Decls is
A_Type := Create_Error_Type (Null_Iir);
Set_Subtype_Indication (Inter, A_Type);
else
+ pragma Assert (Get_Is_Ref (Inter));
A_Type := Get_Type (Last);
Default_Value := Get_Default_Value (Last);
+ Set_Subtype_Indication (Inter, Get_Subtype_Indication (Last));
end if;
else
A_Type := Sem_Subtype_Indication (A_Type);