aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2021-09-10 22:29:27 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2021-10-05 08:20:02 +0000
commitbdabd8b6ecb3115dd359d39221b01cbc4b523333 (patch)
tree8ef5cb7778d9483ebced7859ec0280f7b3ea3f4b /gcc/ada
parentcc1fcd387984da9cde6d7314345d366789929d57 (diff)
downloadgcc-bdabd8b6ecb3115dd359d39221b01cbc4b523333.zip
gcc-bdabd8b6ecb3115dd359d39221b01cbc4b523333.tar.gz
gcc-bdabd8b6ecb3115dd359d39221b01cbc4b523333.tar.bz2
[Ada] Rewrite operator entity in derived class-wide expressions
gcc/ada/ * exp_util.adb (Build_Class_Wide_Expression): Replace entities of both identifiers and operator symbols.
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/exp_util.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/exp_util.adb b/gcc/ada/exp_util.adb
index c0966fb..eef278f 100644
--- a/gcc/ada/exp_util.adb
+++ b/gcc/ada/exp_util.adb
@@ -1293,7 +1293,7 @@ package body Exp_Util is
Adjust_Inherited_Pragma_Sloc (N);
end if;
- if Nkind (N) = N_Identifier
+ if Nkind (N) in N_Identifier | N_Operator_Symbol
and then Present (Entity (N))
and then
(Is_Formal (Entity (N)) or else Is_Subprogram (Entity (N)))