[Ada] Reinitialize Private_Dependents when it is vanishing
authorBob Duff <duff@adacore.com>
Wed, 10 Feb 2021 23:04:42 +0000 (18:04 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 7 May 2021 09:29:18 +0000 (05:29 -0400)
commit9fd8b9fa38ea47692abaf886ba2c30053e71623c
treec458249a89ae5fb04f4951f6a680e694a9172c23
parent4c2629c28d731890e529237cb6751e803df202a8
[Ada] Reinitialize Private_Dependents when it is vanishing

gcc/ada/

* sem_ch3.adb (Process_Incomplete_Dependents): Reset
Private_Dependents field to zero before calling Set_Ekind.  Also
move Set_Etype to after Set_Ekind, because it's always best to
set the Ekind as early as possible.
* atree.adb: Improve debugging facilities for vanishing fields.
gcc/ada/atree.adb
gcc/ada/sem_ch3.adb