diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-07-17 18:57:31 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-07-17 18:57:31 +0200 |
commit | f69295571132f75a9ce19c9be680355202cfe9d0 (patch) | |
tree | bb9135fd2b9caf491cbcd2a49394c00814bcfc70 | |
parent | cfa7ec6144148849b2adefde29dbdb9c7a6fcf8f (diff) | |
download | ghdl-f69295571132f75a9ce19c9be680355202cfe9d0.tar.gz ghdl-f69295571132f75a9ce19c9be680355202cfe9d0.tar.bz2 ghdl-f69295571132f75a9ce19c9be680355202cfe9d0.zip |
vhdl-evaluation: handle element attribute. Fix #1818
-rw-r--r-- | src/vhdl/vhdl-evaluation.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-evaluation.adb b/src/vhdl/vhdl-evaluation.adb index c0f666c6f..e1f5ea32e 100644 --- a/src/vhdl/vhdl-evaluation.adb +++ b/src/vhdl/vhdl-evaluation.adb @@ -2111,7 +2111,8 @@ package body Vhdl.Evaluation is | Iir_Kind_Function_Call | Iir_Kind_Attribute_Value | Iir_Kind_Attribute_Name - | Iir_Kind_Subtype_Attribute => + | Iir_Kind_Subtype_Attribute + | Iir_Kind_Element_Attribute => Prefix_Type := Get_Type (Prefix); when Iir_Kinds_Subtype_Definition => Prefix_Type := Prefix; |