[Ada] Spurious accessibility error on renamed expression
authorJustin Squirek <squirek@adacore.com>
Wed, 18 Aug 2021 03:12:00 +0000 (23:12 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 4 Oct 2021 08:45:04 +0000 (08:45 +0000)
commit2376b04d474656af0234bee68af144a7780253b6
treeead2b748bc79b9e47425f4ccc915d85ae18eb8ed
parentd681ce903bffa9b5ac19fa7ffb721e55043a0fcc
[Ada] Spurious accessibility error on renamed expression

gcc/ada/

* sem_util.adb (Accessibility_Level): Add a case to handle
renamed subprograms in addition to renamed objects.
gcc/ada/sem_util.adb