]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Spurious error in current instance used as formal package
authorJavier Miranda <miranda@adacore.com>
Mon, 3 Aug 2020 17:50:03 +0000 (13:50 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 21 Oct 2020 07:22:45 +0000 (03:22 -0400)
commit7c6fb753e2103347f2a4d6e31c845ed13c2b859e
tree715b8d831c1284ed270de3bb4c44de7f8e779c7a
parent4a17254b261b473c3cb22898e6662ee6fa913731
[Ada] Spurious error in current instance used as formal package

gcc/ada/

* sem_ch12.adb (Install_Parents_Of_Generic_Context): Simplify
functionality; collect and install parents of generic child
package.
(Remove_Parents_Of_Generic_Context): Code cleanup.
(Instantiate_Package_Body): Hide parents of generic context from
visibility before installing the parent instance; restore their
visibility when the instance is analyzed
gcc/ada/sem_ch12.adb