diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-02-06 20:22:49 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-02-07 05:33:58 +0100 |
commit | 2c5f8d35f89153533edffe3ae472b91932670519 (patch) | |
tree | f8c2c535ce4f8de8fc6fa72f1b5515788f948d3a /src/vhdl | |
parent | f0c98e42fdee37d6a8781f03a17474e277ff3155 (diff) | |
download | ghdl-2c5f8d35f89153533edffe3ae472b91932670519.tar.gz ghdl-2c5f8d35f89153533edffe3ae472b91932670519.tar.bz2 ghdl-2c5f8d35f89153533edffe3ae472b91932670519.zip |
vhdl: do not crash on selected by name type conversion.
Fix #747
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/sem_names.adb | 3 |
1 files changed, 2 insertions, 1 deletions
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); |