diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-06 08:52:28 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-06 08:52:28 +0000 |
commit | 4e5db562349816dbbc9ee761d2a1558bae81b2e1 (patch) | |
tree | e101c7fef25a6134bceb236ce65591e9a9933c4a | |
parent | b23dd297006af13005d9450f390fa91645c3bed0 (diff) | |
download | gcc-4e5db562349816dbbc9ee761d2a1558bae81b2e1.tar.gz |
2008-08-06 Javier Miranda <miranda@adacore.com>
* exp_disp (Expand_Interface_Actuals): Adds missing support for
expansion of calls to subprograms using selected components.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138778 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ada/exp_disp.adb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/exp_disp.adb b/gcc/ada/exp_disp.adb index 9ce2e74c9b0..591150101fc 100644 --- a/gcc/ada/exp_disp.adb +++ b/gcc/ada/exp_disp.adb @@ -1054,7 +1054,12 @@ package body Exp_Disp is if Nkind (Name (Call_Node)) = N_Explicit_Dereference then Subp := Etype (Name (Call_Node)); - -- Normal case + -- Call using selected component + + elsif Nkind (Name (Call_Node)) = N_Selected_Component then + Subp := Entity (Selector_Name (Name (Call_Node))); + + -- Call using direct name else Subp := Entity (Name (Call_Node)); |