Commit 20ad15c
Eric Botcazou
Ada: Fix visibility issue for child unit declared as instance on homonym
The reproducer is made up of 9 units containing multiple level of nested
instances, but in the end the problem is that the final child unit has
the same name as the parameter in its instantiation, exposing the wrong
manipulation of the homonym chain done in Analyze_Subprogram_Instantiation.
The fix is to replace this manipulation with a call to Remove_Homonym.
gcc/ada/
PR ada/48039
* sem_ch12.adb (Analyze_Subprogram_Instantiation): Call
Remove_Homonym to remove the enclosing package from visibility.1 parent 4f06ce1 commit 20ad15c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6735 | 6735 | | |
6736 | 6736 | | |
6737 | 6737 | | |
6738 | | - | |
| 6738 | + | |
6739 | 6739 | | |
6740 | 6740 | | |
6741 | 6741 | | |
| |||
0 commit comments