aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_expr.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-09-10 20:06:59 +0200
committerTristan Gingold <tgingold@free.fr>2018-09-10 20:06:59 +0200
commit89fa7076795f3462a9dff541559b0f39124e5e86 (patch)
tree873cf4cabfb1b5075bc3a4596fbba4b04ad54f3d /src/vhdl/sem_expr.adb
parent4e220a1bc67acc7924830a01af80ba18bad1810a (diff)
downloadghdl-89fa7076795f3462a9dff541559b0f39124e5e86.tar.gz
ghdl-89fa7076795f3462a9dff541559b0f39124e5e86.tar.bz2
ghdl-89fa7076795f3462a9dff541559b0f39124e5e86.zip
Add Element_Type_Flag for associations.
Diffstat (limited to 'src/vhdl/sem_expr.adb')
-rw-r--r--src/vhdl/sem_expr.adb2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/sem_expr.adb b/src/vhdl/sem_expr.adb
index 99ae627d2..be236cc05 100644
--- a/src/vhdl/sem_expr.adb
+++ b/src/vhdl/sem_expr.adb
@@ -3158,6 +3158,8 @@ package body Sem_Expr is
end if;
end if;
+ Set_Element_Type_Flag (El, not Is_Array);
+
if Expr /= Null_Iir then
El_Staticness := Get_Expr_Staticness (Expr);
Expr := Eval_Expr_If_Static (Expr);