From 03384250947e4b087db59d1671373855f73bb4ed Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 25 Jan 2023 21:34:46 +0100 Subject: vhdl-sem_decl: handle subtype of interface type. Fix #2326 --- src/vhdl/vhdl-sem_decls.adb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vhdl/vhdl-sem_decls.adb b/src/vhdl/vhdl-sem_decls.adb index 21c4d3542..31d6ef6fe 100644 --- a/src/vhdl/vhdl-sem_decls.adb +++ b/src/vhdl/vhdl-sem_decls.adb @@ -848,6 +848,7 @@ package body Vhdl.Sem_Decls is if not Is_Anonymous_Type_Definition (Def) and then Get_Kind (Def) /= Iir_Kind_Protected_Type_Declaration + and then Get_Kind (Def) /= Iir_Kind_Interface_Type_Definition then -- There is no added constraints and therefore the subtype -- declaration is in fact an alias of the type. Create a copy so -- cgit v1.2.3