diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-09-25 21:01:50 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-09-25 21:01:50 +0200 |
commit | 63c9d7e02e979d721a0ddb12bcdaa3976d50aac9 (patch) | |
tree | e43e62d8ee723fca58528a63917043acd5846ede | |
parent | 84d5da4e8a15bb049cecd08e26ecfca15d23f820 (diff) | |
download | ghdl-63c9d7e02e979d721a0ddb12bcdaa3976d50aac9.tar.gz ghdl-63c9d7e02e979d721a0ddb12bcdaa3976d50aac9.tar.bz2 ghdl-63c9d7e02e979d721a0ddb12bcdaa3976d50aac9.zip |
synth: fix crash on slice of slice.
-rw-r--r-- | src/synth/synth-expr.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index 5ee1ad90c..fa2ddc925 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -1220,7 +1220,8 @@ package body Synth.Expr is return Value_Acc is Pfx_Node : constant Node := Get_Prefix (Name); - Pfx : constant Value_Acc := Synth_Expression (Syn_Inst, Pfx_Node); + Pfx : constant Value_Acc := + Synth_Expression_With_Basetype (Syn_Inst, Pfx_Node); Res_Bnd : Bound_Type; Res_Type : Type_Acc; Inp : Net; |