aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEd Schonberg <schonberg@adacore.com>2005-03-18 12:48:56 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2005-03-18 12:48:56 +0100
commit2ccf2fb35ea3eda056496c378fc5d07d363e0407 (patch)
tree6368e497cc5c4fd1ced737379118106193ac9827 /gcc
parentd2d3604c74a30cebd485537b698dc89fcdd17709 (diff)
downloadgcc-2ccf2fb35ea3eda056496c378fc5d07d363e0407.zip
gcc-2ccf2fb35ea3eda056496c378fc5d07d363e0407.tar.gz
gcc-2ccf2fb35ea3eda056496c378fc5d07d363e0407.tar.bz2
exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed entity is an operator.
2005-03-17 Ed Schonberg <schonberg@adacore.com> * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed entity is an operator. From-SVN: r96667
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/exp_ch6.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/exp_ch6.adb b/gcc/ada/exp_ch6.adb
index d0ccfb2..c4fc454 100644
--- a/gcc/ada/exp_ch6.adb
+++ b/gcc/ada/exp_ch6.adb
@@ -553,7 +553,6 @@ package body Exp_Ch6 is
Indic := New_Occurrence_Of (Etype (Formal), Loc);
end if;
-
if Nkind (Actual) = N_Type_Conversion then
V_Typ := Etype (Expression (Actual));
@@ -2683,8 +2682,9 @@ package body Exp_Ch6 is
return;
end if;
- if Nkind (Orig_Bod) = N_Defining_Identifier then
-
+ if Nkind (Orig_Bod) = N_Defining_Identifier
+ or else Nkind (Orig_Bod) = N_Defining_Operator_Symbol
+ then
-- Subprogram is a renaming_as_body. Calls appearing after the
-- renaming can be replaced with calls to the renamed entity
-- directly, because the subprograms are subtype conformant. If