public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1472] [Ada] Fix handling of scopes for subprogram calls in unnesting
@ 2021-06-15 10:22 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-06-15 10:22 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:4cee20bb1ebbe66d4065c33da9f8743683228ede
commit r12-1472-g4cee20bb1ebbe66d4065c33da9f8743683228ede
Author: Arnaud Charlet <charlet@adacore.com>
Date: Thu Feb 11 14:08:35 2021 +0100
[Ada] Fix handling of scopes for subprogram calls in unnesting
gcc/ada/
* exp_unst.adb (Unnest_Subprogram.Build_Table.Visit_Node): Fix
handling of scopes for subprogram calls.
Diff:
---
gcc/ada/exp_unst.adb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ada/exp_unst.adb b/gcc/ada/exp_unst.adb
index 6fd7a0ec6b9..52d6142f20d 100644
--- a/gcc/ada/exp_unst.adb
+++ b/gcc/ada/exp_unst.adb
@@ -883,7 +883,7 @@ package body Exp_Unst is
-- within Subp. Calls to Subp itself or to subprograms
-- outside the nested structure do not affect us.
- if Scope_Within (Ent, Subp)
+ if Scope_Within (Ultimate_Alias (Ent), Subp)
and then Is_Subprogram (Ent)
and then not Is_Imported (Ent)
then
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-15 10:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 10:22 [gcc r12-1472] [Ada] Fix handling of scopes for subprogram calls in unnesting Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).