]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Crash in tagged type constructor with task components
authorJavier Miranda <miranda@adacore.com>
Wed, 8 Apr 2020 13:43:58 +0000 (09:43 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 16 Jun 2020 13:07:16 +0000 (09:07 -0400)
commit82af72916360c4f7b4e38b005e866bde80e7cd2d
tree55481ea15cdd4b1e33b9eaacf8078298ae085bd9
parentbcc0f556a7ed261d8270a925fd4823c7136783f0
[Ada] Crash in tagged type constructor with task components

2020-06-16  Javier Miranda  <miranda@adacore.com>

gcc/ada/

* exp_ch6.adb (BIP_Suffix_Kind, Check_BIP_Actuals,
Is_Build_In_Place_Entity): New subprograms.
(Make_Build_In_Place_Call_In_Allocator,
Make_Build_In_Place_Call_In_Anonymous_Context,
Make_Build_In_Place_Call_In_Assignment,
Make_Build_In_Place_Call_In_Object_Declaration): Add assertions.
(Needs_BIP_Task_Actuals): Add missing support for thunks.
(Expand_Actuals): Ensure that the BIP call has available an
activation chain and the _master variable.
* exp_ch9.adb (Find_Enclosing_Context): Initialize the list of
declarations of empty blocks when the _master variable must be
declared and the list was not available.
gcc/ada/exp_ch6.adb
gcc/ada/exp_ch9.adb