diff options
author | Justin Squirek <squirek@adacore.com> | 2022-02-14 20:51:49 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-13 08:04:24 +0000 |
commit | 8a8366d4969e87366a94d9f2b768606fdf46a7b2 (patch) | |
tree | ab767dafc448f7f86859d0282b74f247d7b5a6ef /gcc/ada/sem_ch3.adb | |
parent | bac63f1ea9121a59e980981cfb8b2ea1869f12f0 (diff) | |
download | gcc-8a8366d4969e87366a94d9f2b768606fdf46a7b2.zip gcc-8a8366d4969e87366a94d9f2b768606fdf46a7b2.tar.gz gcc-8a8366d4969e87366a94d9f2b768606fdf46a7b2.tar.bz2 |
[Ada] Ineffective use type clause warnings cause compile time crash
This patch corrects an error in the compiler whereby the presence of a
generic instance featuring a use type clause at library level may cause
a crash at compile time when warnings for ineffective use clauses are
enabled and the type in question is already use visible.
gcc/ada/
* sem_ch8.adb (Determine_Package_Scope): Created to centralize
the calculation of which package a given use clause belongs to.
(Most_Descendant_Use_Clause): Modified to call
Determine_Package_Scope.
* sem_util.adb, sem_util.ads (Enclosing_Package): Modified to
handle both entity and node ids.
Diffstat (limited to 'gcc/ada/sem_ch3.adb')
0 files changed, 0 insertions, 0 deletions