summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-16 08:37:02 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-16 08:37:02 +0000
commitbd01c199deb32cd0305713a33cc60513795cb99d (patch)
tree788e12a22da4f6980f015e399cc00998df210bbe
parentbff57bf5f5ec508a84f7944df66bfb179f526c40 (diff)
downloadppe42-gcc-bd01c199deb32cd0305713a33cc60513795cb99d.tar.gz
ppe42-gcc-bd01c199deb32cd0305713a33cc60513795cb99d.zip
2005-06-14 Thomas Quinot <quinot@adacore.com>
* exp_ch2.adb (Param_Entity): Take the case of an expanded_name denoting a formal parameter into account. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101032 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ada/exp_ch2.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/exp_ch2.adb b/gcc/ada/exp_ch2.adb
index bb855415fd7..8327aaf72e5 100644
--- a/gcc/ada/exp_ch2.adb
+++ b/gcc/ada/exp_ch2.adb
@@ -713,7 +713,7 @@ package body Exp_Ch2 is
begin
-- Simple reference case
- if Nkind (N) = N_Identifier then
+ if Nkind (N) = N_Identifier or else Nkind (N) = N_Expanded_Name then
if Is_Formal (Entity (N)) then
return Entity (N);
OpenPOWER on IntegriCloud