OSDN Git Service

2005-06-14 Thomas Quinot <quinot@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Jun 2005 08:37:02 +0000 (08:37 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Jun 2005 08:37:02 +0000 (08:37 +0000)
* 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

gcc/ada/exp_ch2.adb

index bb85541..8327aaf 100644 (file)
@@ -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);