[Ada] Misplace of internal master renaming declaration
authorJavier Miranda <miranda@adacore.com>
Sat, 13 Jun 2020 12:21:19 +0000 (08:21 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 16 Jul 2020 09:18:20 +0000 (05:18 -0400)
commit135c02769b9ec625a55a0beba63415c1484f8951
tree282d0c18a109b78e36c142b5703bcf1d5e1d5c24
parentca320dabf052c6fa53c25d77646e2edfffc18594
[Ada] Misplace of internal master renaming declaration

gcc/ada/

* exp_ch3.adb (Expand_N_Full_Type_Declaration): Ensure a _master
declaration on limited types that might have tasks.
* exp_ch9.adb (Build_Master_Renaming): For private types, if we
are processing declarations in the private part, ensure that
master is inserted before its full declaration; otherwise the
master renaming may be inserted in the public part of the
package (and hence before the declaration of its _master
variable).
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch9.adb