]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Attempt to hide public entities in nested instance bodies
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 28 Apr 2020 20:19:17 +0000 (22:19 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 19 Jun 2020 08:17:16 +0000 (04:17 -0400)
commit6c89a5815ae10e7506cd25a6e55d5ed4774dc199
treea19637e7cb63ce34e34638a8f6def54039cb70de
parent4b58985f6cc427a53fd72b3eabb2e9c252c2dc58
[Ada] Attempt to hide public entities in nested instance bodies

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

gcc/ada/

* sem_ch7.adb (Hide_Public_Entities): Split handling of objects
and subprograms, and do not reject the latter upfront in nested
instance specs if there are no referencer subprograms at all.
(Analyze_Package_Body_Helper): Also call Hide_Public_Entities on
nested generic instances.
gcc/ada/sem_ch7.adb