aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2021-09-30 12:54:28 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2021-10-11 13:38:10 +0000
commite0926f7901431a1f145c83db284b94d75b926fe0 (patch)
treeb64f9ee0150168219818d2087f58f89a6a941e1e /gcc
parent4075bdcf80721fbc35c6cad603097d61767d0af3 (diff)
downloadgcc-e0926f7901431a1f145c83db284b94d75b926fe0.zip
gcc-e0926f7901431a1f145c83db284b94d75b926fe0.tar.gz
gcc-e0926f7901431a1f145c83db284b94d75b926fe0.tar.bz2
[Ada] Rewrite extended names in derived class-wide expressions
gcc/ada/ * exp_util.adb (Build_Class_Wide_Expression): Replace entities of both simple and extended names.
Diffstat (limited to 'gcc')
-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 11499e1..2ae3dd3 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) in N_Identifier | N_Operator_Symbol
+ if Nkind (N) in N_Identifier | N_Expanded_Name | N_Operator_Symbol
and then Present (Entity (N))
and then
(Is_Formal (Entity (N)) or else Is_Subprogram (Entity (N)))