diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-03-04 07:58:47 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-03-04 07:58:47 +0100 |
commit | ecade8c59b545e5232273aca11d3f2e69fee29cd (patch) | |
tree | a3a9aac849de2f8e4380a4d4c798728ad75079e8 /src/vhdl | |
parent | 7356d30f26ec213b8e342e2b17a67443b0452801 (diff) | |
download | ghdl-ecade8c59b545e5232273aca11d3f2e69fee29cd.tar.gz ghdl-ecade8c59b545e5232273aca11d3f2e69fee29cd.tar.bz2 ghdl-ecade8c59b545e5232273aca11d3f2e69fee29cd.zip |
vhdl-sem_names: fix a crash with select of element attribute. Fix #1992
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/vhdl-sem_names.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb index 56096a2b0..ffd3116e5 100644 --- a/src/vhdl/vhdl-sem_names.adb +++ b/src/vhdl/vhdl-sem_names.adb @@ -2568,7 +2568,8 @@ package body Vhdl.Sem_Names is | Iir_Kind_Slice_Name | Iir_Kind_Procedure_Call_Statement | Iir_Kind_Attribute_Declaration - | Iir_Kind_Type_Conversion => + | Iir_Kind_Type_Conversion + | Iir_Kind_Element_Attribute => if not Soft then Error_Msg_Sem (+Prefix_Loc, "%n cannot be selected by name", +Prefix); |