[Ada] Spurious error on instantiations with Taft_Amendment types and tasks
authorEd Schonberg <schonberg@adacore.com>
Mon, 24 Feb 2020 18:37:58 +0000 (13:37 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 9 Jun 2020 08:09:00 +0000 (04:09 -0400)
commit54025948c0a4cad05cc22fe67d104e5e3ac9b0de
tree1cc8433adce51ad92a0e20c794139707fba3137e
parent6859ef489341d436ebf2fd5d41282c4f68b0283d
[Ada] Spurious error on instantiations with Taft_Amendment types and tasks

2020-06-09  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* exp_ch9.adb (Build_Master_Renaming): Make name in renaming
declaration unique by adding a numeric suffix, to prevent
accidental name conflict when several instantiations of a
package containing an access_to_incomplete type that designate
tasks appear in the same scope.
gcc/ada/exp_ch9.adb