sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about redundant use...
authorBob Duff <duff@adacore.com>
Wed, 15 Feb 2006 09:44:48 +0000 (10:44 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 15 Feb 2006 09:44:48 +0000 (10:44 +0100)
commitcdc8c54cf73e3b3d5cd5d3431a76a0fbd1c42908
tree10fe87d271c0182201b19bf84b34185e36bc71ed
parentfe45e59ec7c0f225502471bf4202bee09efb63db
sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about redundant use clauses.

2006-02-13  Bob Duff  <duff@adacore.com>

* sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
redundant use clauses.
In particular, if the scope of two use clauses overlaps, but one is not
entirely included in the other, we should not warn.  This can happen
with nested packages.
(Analyze_Subprogram_Renaming): Protect the compiler against previously
reported errors. The bug was reported when the compiler was built
with assertions enabled.
(Find_Type): If the node is a 'Class reference and the prefix is a
synchronized type without a corresponding record, return the type
itself.

From-SVN: r111093
gcc/ada/sem_ch8.adb