diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-07-21 21:34:57 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-07-21 21:34:57 +0200 |
commit | 0051b3bca69ff96e8410a5f5fb8d588d4df25ce2 (patch) | |
tree | 4b26f982f72d1d66b3bb81ec52f4ff6c209045c1 /src/vhdl/vhdl-sem_decls.adb | |
parent | 162561a5659c6276368fde2fd5eaebd8400c0e57 (diff) | |
download | ghdl-0051b3bca69ff96e8410a5f5fb8d588d4df25ce2.tar.gz ghdl-0051b3bca69ff96e8410a5f5fb8d588d4df25ce2.tar.bz2 ghdl-0051b3bca69ff96e8410a5f5fb8d588d4df25ce2.zip |
vhdl: handle element attribute in declarations. Fix #2136
Diffstat (limited to 'src/vhdl/vhdl-sem_decls.adb')
-rw-r--r-- | src/vhdl/vhdl-sem_decls.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_decls.adb b/src/vhdl/vhdl-sem_decls.adb index 8d7cbe50f..0d5a02bad 100644 --- a/src/vhdl/vhdl-sem_decls.adb +++ b/src/vhdl/vhdl-sem_decls.adb @@ -1146,7 +1146,8 @@ package body Vhdl.Sem_Decls is Ind : constant Iir := Get_Subtype_Indication (Decl); begin if not (Is_Valid (Ind) - and then Get_Kind (Ind) = Iir_Kind_Subtype_Attribute) + and then Kind_In (Ind, Iir_Kind_Subtype_Attribute, + Iir_Kind_Element_Attribute)) and then not Is_Fully_Constrained_Type (Atype) then Report_Start_Group; |