[Ada] Fix fallout of cleanup to Has_Private_View mechanism
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 18 Jan 2020 22:40:05 +0000 (23:40 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 4 Jun 2020 09:10:56 +0000 (05:10 -0400)
commit8a91f77d3ac51d7b1aa07c00929c64a91b08175f
treeb5f8ac3372049b6b6f497765da62df00ca3836cf
parent9f3a17960b09f36bf67e15eb8a5e1feea9c2c9ba
[Ada] Fix fallout of cleanup to Has_Private_View mechanism

2020-06-04  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* sem_ch12.adb (Check_Generic_Actuals): Also restore the proper
views of the actuals of the parent instances if the formals are
used as actuals of the children.
(Instantiate_Type): Add comment.
gcc/ada/sem_ch12.adb