[Ada] Set missing Parent field of block entity

gcc/ada/

	* exp_ch9.adb (Expand_N_Accept_Statement): Set Parent of the
	created block entity to the created block statement.
This commit is contained in:
Eric Botcazou 2020-06-11 15:25:44 +02:00 committed by Pierre-Marie de Rodat
parent 8e640a5f32
commit 340375cae9

View File

@ -6660,6 +6660,7 @@ package body Exp_Ch9 is
-- must be properly set.
Set_Parent (Block, Parent (N));
Set_Parent (Blkent, Block);
-- Prepend call to Accept_Call to main statement sequence If the
-- accept has exception handlers, the statement sequence is wrapped