diff options
author | Bob Duff <duff@adacore.com> | 2024-01-03 16:32:51 -0500 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-05-06 11:11:31 +0200 |
commit | 9737a48553b7b489bbecb59b6dd9a96ed02bb1f8 (patch) | |
tree | df00600ea10b4c0d3c2da3f6a6b3e7abca140a08 /libgcc | |
parent | 615c33804f6a1d3f6dcc02308f59b24c735881dc (diff) | |
download | gcc-9737a48553b7b489bbecb59b6dd9a96ed02bb1f8.zip gcc-9737a48553b7b489bbecb59b6dd9a96ed02bb1f8.tar.gz gcc-9737a48553b7b489bbecb59b6dd9a96ed02bb1f8.tar.bz2 |
ada: Give error for reference to nonvisible library unit
This patch fixes a bug where the compiler would allow
a name X to refer to a library unit that is not visible.
In particular, this happens when the name X occurs in the
private part of a library package, and the parent of that
package contains an instantiation of a generic package, and the
spec of that generic package has "private with X;",
but there is no "private with X;" or "with X;" that applies
to the place where the name X occurs.
Also misc cleanup.
gcc/ada/
* sem_ch10.adb (Expand_With_Clause): Misc cleanup.
(Install_Private_With_Clauses): Avoid installing a private
with_clause that comes from an instantiated generic
(it is marked as Implicit_With, but doesn't come from a parent
with). Fix typo in comment, and other minor cleanups.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions