aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Nolan <C-Elegans@users.noreply.github.com>2022-07-12 14:59:31 -0400
committerGitHub <noreply@github.com>2022-07-12 20:59:31 +0200
commit1541c5d742f5860dfff92c12de11415b94ee0709 (patch)
tree7bd0daf04868a73c24a1ae92b9719487c203f717
parent02588566f171f87109d026f8fbbc39796eada17c (diff)
downloadghdl-1541c5d742f5860dfff92c12de11415b94ee0709.tar.gz
ghdl-1541c5d742f5860dfff92c12de11415b94ee0709.tar.bz2
ghdl-1541c5d742f5860dfff92c12de11415b94ee0709.zip
Fix access check failed from iir_kind_selected_element (#2132)
-rw-r--r--src/synth/synth-vhdl_expr.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/synth/synth-vhdl_expr.adb b/src/synth/synth-vhdl_expr.adb
index 26555ff4d..f4cea4eaf 100644
--- a/src/synth/synth-vhdl_expr.adb
+++ b/src/synth/synth-vhdl_expr.adb
@@ -2230,6 +2230,7 @@ package body Synth.Vhdl_Expr is
when Iir_Kind_High_Array_Attribute
| Iir_Kind_Low_Array_Attribute
| Iir_Kind_Indexed_Name
+ | Iir_Kind_Selected_Element
| Iir_Kind_Integer_Literal =>
-- For array attributes: the type is the type of the index, which
-- is not synthesized as a type (only as an index).