diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2025-10-04 11:28:27 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2025-10-04 11:32:03 +0200 |
commit | 70639fc6067b315b3527e17077eba72b74eb42b4 (patch) | |
tree | 261be2ece17018360cb8d1b4dc9cf379ef74cdb9 /gcc/diagnostics/state-graphs.h | |
parent | 68073785e85857cf26d1b78bf2ac2f3e1af63e1b (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
This is an issue reported 10 years ago for a new feature introduced in the
language 20 years ago (Ada 2005): primitive subprograms of a type named in
an use-all-type clause are not seen as (potentially) use-visible if the type
is declared in a nested package, except in the specific case of enumeration
literals; the fix just extends the processing done for enumeration literals.
gcc/ada/
PR ada/64869
* sem_ch7.adb (Install_Private_Declarations): Also propagate the
Current_Use_Clause from partial to full view.
(Uninstall_Declarations): Extend implementation of RM 8.4(8.1/3)
subclause to all primitive subprograms.
gcc/testsuite/
* gnat.dg/use_type1.adb: New test.
* gnat.dg/use_type2.adb: Likewise.
Diffstat (limited to 'gcc/diagnostics/state-graphs.h')
0 files changed, 0 insertions, 0 deletions