[Ada] Spurious visibility error in subprogram body in with_clause
authorEd Schonberg <schonberg@adacore.com>
Fri, 6 Nov 2020 15:21:06 +0000 (10:21 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 30 Nov 2020 14:16:15 +0000 (09:16 -0500)
commit86b747a553784eb0675406c23f4789afe76eadab
tree460fcba53f3a1dfc6b8d2231127b19b4829574e5
parentebbe3f29518854c36574adbd4fa82fd56fa64056
[Ada] Spurious visibility error in subprogram body in with_clause

gcc/ada/

* sem_util.adb (Enter_Name): When an inherited operation for a
local derived type is hidden by an explicit declaration of a
non-overloadable entity in the same scope, make the inherited
operation non-visible to prevent its accidental use elsewhere.
gcc/ada/sem_util.adb