diff options
Diffstat (limited to 'gcc/ada/exp_util.adb')
-rw-r--r-- | gcc/ada/exp_util.adb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ada/exp_util.adb b/gcc/ada/exp_util.adb index 5cade6c..c8411f9 100644 --- a/gcc/ada/exp_util.adb +++ b/gcc/ada/exp_util.adb @@ -3888,7 +3888,13 @@ package body Exp_Util is N_Selected_Component) then Ren_Obj := Prefix (Ren_Obj); - Change := True; + Change := True; + + elsif Nkind_In (Ren_Obj, N_Type_Conversion, + N_Unchecked_Type_Conversion) + then + Ren_Obj := Expression (Ren_Obj); + Change := True; end if; end loop; |