aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorJustin Squirek <squirek@adacore.com>2022-01-21 17:09:29 +0000
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-10 08:19:29 +0000
commita77ab90ed3a3077a1e9320ac43b32c850d7c525f (patch)
treed2046761f32af2c72df09111c0cee3095440f7ce /libiberty
parentd5e6a22b54b0bfc78288c7ffb94ac6afad39ee7e (diff)
downloadgcc-a77ab90ed3a3077a1e9320ac43b32c850d7c525f.zip
gcc-a77ab90ed3a3077a1e9320ac43b32c850d7c525f.tar.gz
gcc-a77ab90ed3a3077a1e9320ac43b32c850d7c525f.tar.bz2
[Ada] Incorrect ineffective use type clause warning
This patch fixes an issue in the compiler whereby a use_type_clause incorrectly gets flagged as ineffective when the use of it comes after a generic package instantiation where the installation of private use clauses are required and one such clause references the same type. gcc/ada/ * sem_ch8.adb (Use_One_Type): Remove code in charge of setting Current_Use_Clause when Id is known to be redundant, and modify the printing of errors associated with redundant use type clauses so that line number gets included in more cases.
Diffstat (limited to 'libiberty')
0 files changed, 0 insertions, 0 deletions