aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_res.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2009-04-10 09:58:35 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2009-04-10 11:58:35 +0200
commit24357840f1d9fbeb5f604b33b541479786d9910a (patch)
tree60b600a4905a739ecc00f1a2f5f76492813fd691 /gcc/ada/sem_res.adb
parent4f64abad80d072773ac390c9a93470dd57da4c31 (diff)
downloadgcc-24357840f1d9fbeb5f604b33b541479786d9910a.zip
gcc-24357840f1d9fbeb5f604b33b541479786d9910a.tar.gz
gcc-24357840f1d9fbeb5f604b33b541479786d9910a.tar.bz2
sem_aux.ads, [...] (Nearest_Current_Scope): New function.
2009-04-10 Robert Dewar <dewar@adacore.com> * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function. * sem_res.adb (Resolve_Call): Fix test for Suppress_Value_Tracking_On_Call (was wrong for the case of a call from a non-dynamic scope). From-SVN: r145881
Diffstat (limited to 'gcc/ada/sem_res.adb')
-rw-r--r--gcc/ada/sem_res.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/sem_res.adb b/gcc/ada/sem_res.adb
index 9ff9d80..a6c5aad 100644
--- a/gcc/ada/sem_res.adb
+++ b/gcc/ada/sem_res.adb
@@ -5150,7 +5150,8 @@ package body Sem_Res is
if Inside_Freezing_Actions = 0
and then (not Is_Library_Level_Entity (Nam)
- or else Suppress_Value_Tracking_On_Call (Current_Scope))
+ or else Suppress_Value_Tracking_On_Call
+ (Nearest_Dynamic_Scope (Current_Scope)))
and then (Comes_From_Source (Nam)
or else (Present (Alias (Nam))
and then Comes_From_Source (Alias (Nam))))