]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix internal error on instance in package body with -gnatn
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 12 Jan 2023 14:51:40 +0000 (15:51 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 15 May 2023 09:36:42 +0000 (11:36 +0200)
commit0ca7fcf5635bdd363a5a18e7cf5828d87b5aac55
tree24b274b11f3ec00117bfcb1cafed0bd49aef2a6a
parent1f068a17811a89035e43894686b333e9070f45ef
ada: Fix internal error on instance in package body with -gnatn

This plugs a small loophole in the procedure responsible for attempting to
hide entities that have been previously made public by the semantic analyzer
in package bodies.

gcc/ada/

* sem_ch7.adb (Hide_Public_Entities): Use the same condition for
subprogram bodies without specification as for those with one.
gcc/ada/sem_ch7.adb