diff --git a/gcc/ada/exp_unst.adb b/gcc/ada/exp_unst.adb index b01cfc13bf9..7acb0656262 100644 --- a/gcc/ada/exp_unst.adb +++ b/gcc/ada/exp_unst.adb @@ -643,7 +643,9 @@ package body Exp_Unst is -- Conversion case - elsif Nkind (N) = N_Type_Conversion then + elsif Nkind (N) in + N_Type_Conversion | N_Unchecked_Type_Conversion + then Note_Uplevel_Bound (Expression (N), Ref); end if; end Note_Uplevel_Bound;