[Ada] Bad "already use-visible" warning re: use in private part
authorBob Duff <duff@adacore.com>
Wed, 18 Dec 2019 07:14:07 +0000 (07:14 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 18 Dec 2019 07:14:07 +0000 (07:14 +0000)
commit4f691cb20d7a83dc332ae538f23fcae14a07522d
treeca17caeeca59444158c079437e7ea7b1d920039f
parent63fdce854307045801a86e9ef242db1612438ec6
[Ada] Bad "already use-visible" warning re: use in private part

2019-12-18  Bob Duff  <duff@adacore.com>

gcc/ada/

* sem_ch8.adb (Note_Redundant_Use): It was already checking for
a use clause in the visible part of the child. Add an additional
check for a use clause in the context clause of the child.

From-SVN: r279504
gcc/ada/ChangeLog
gcc/ada/sem_ch8.adb