From 55ee38da4231f0a290d33ea71f2589ab59ed4c47 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 21 Feb 2021 21:37:25 +0100 Subject: synth-stmts: handle attributes in block and generate statements. Fix #1658 --- src/synth/synth-stmts.adb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/synth/synth-stmts.adb b/src/synth/synth-stmts.adb index 3bb0003f8..a19ca987a 100644 --- a/src/synth/synth-stmts.adb +++ b/src/synth/synth-stmts.adb @@ -3170,6 +3170,9 @@ package body Synth.Stmts is Synth_Declarations (Blk_Inst, Get_Declaration_Chain (Blk)); Synth_Concurrent_Statements (Blk_Inst, Get_Concurrent_Statement_Chain (Blk)); + + Synth_Attribute_Values (Blk_Inst, Blk); + Finalize_Declarations (Blk_Inst, Get_Declaration_Chain (Blk)); Free_Instance (Blk_Inst); @@ -3444,6 +3447,8 @@ package body Synth.Stmts is Synth_Concurrent_Statements (Bod_Inst, Get_Concurrent_Statement_Chain (Bod)); + Synth_Attribute_Values (Bod_Inst, Bod); + Finalize_Declarations (Bod_Inst, Decls_Chain); Free_Instance (Bod_Inst); -- cgit v1.2.3