diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-08-04 10:08:32 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-08-04 10:08:32 +0200 |
commit | 2c5960c36dce34514bbbbdadefd543331a851144 (patch) | |
tree | ef81a713557f6842a988f87c78b9075dbcc05b99 /src | |
parent | d83635035bb72eeef7d999e5b7405eb81b96df1b (diff) | |
download | ghdl-2c5960c36dce34514bbbbdadefd543331a851144.tar.gz ghdl-2c5960c36dce34514bbbbdadefd543331a851144.tar.bz2 ghdl-2c5960c36dce34514bbbbdadefd543331a851144.zip |
vhdl-sem_expr: check subtype constraint of record aggregate elements.
For #1419
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/vhdl-sem_expr.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-sem_expr.adb b/src/vhdl/vhdl-sem_expr.adb index 29770f0a5..cd3d4826a 100644 --- a/src/vhdl/vhdl-sem_expr.adb +++ b/src/vhdl/vhdl-sem_expr.adb @@ -3214,7 +3214,8 @@ package body Vhdl.Sem_Expr is Expr := Sem_Expression_Wildcard (Expr, El_Type, Constrained); if Expr /= Null_Iir then - Set_Associated_Expr (El, Eval_Expr_If_Static (Expr)); + Set_Associated_Expr + (El, Eval_Expr_Check_If_Static (Expr, El_Type)); Expr_Staticness := Min (Expr_Staticness, Get_Expr_Staticness (Expr)); if not Add_Constraints |