From 2c5f8d35f89153533edffe3ae472b91932670519 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 6 Feb 2019 20:22:49 +0100 Subject: vhdl: do not crash on selected by name type conversion. Fix #747 --- src/vhdl/sem_names.adb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb index 03c1f1e40..38d372c53 100644 --- a/src/vhdl/sem_names.adb +++ b/src/vhdl/sem_names.adb @@ -2268,7 +2268,8 @@ package body Sem_Names is | Iir_Kind_Component_Instantiation_Statement | Iir_Kind_Slice_Name | Iir_Kind_Procedure_Call_Statement - | Iir_Kind_Attribute_Declaration => + | Iir_Kind_Attribute_Declaration + | Iir_Kind_Type_Conversion => if not Soft then Error_Msg_Sem (+Prefix_Loc, "%n cannot be selected by name", +Prefix); -- cgit v1.2.3