[Ada] Spurious warning about hiding in generic instantiation
gcc/ada/ * sem_util.adb (Enter_Name): Suppress hiding warning when in an instance.
This commit is contained in:
parent
1c37d1960a
commit
302563cf1b
1 changed files with 4 additions and 0 deletions
|
@ -8656,6 +8656,10 @@ package body Sem_Util is
|
|||
and then Comes_From_Source (C)
|
||||
and then Comes_From_Source (Def_Id)
|
||||
|
||||
-- Don't warn within a generic instantiation
|
||||
|
||||
and then not In_Instance
|
||||
|
||||
-- Don't warn unless entity in question is in extended main source
|
||||
|
||||
and then In_Extended_Main_Source_Unit (Def_Id)
|
||||
|
|
Loading…
Add table
Reference in a new issue