[Ada] Fix compile time evaluation of shift intrinsics
gcc/ada/ * sem_eval.adb (Fold_Shift): Compute values using the base type.
This commit is contained in:
parent
b97b4e6f71
commit
415791cf5c
|
@ -4785,7 +4785,7 @@ package body Sem_Eval is
|
|||
Static : Boolean := False;
|
||||
Check_Elab : Boolean := False)
|
||||
is
|
||||
Typ : constant Entity_Id := Etype (Left);
|
||||
Typ : constant Entity_Id := Base_Type (Etype (Left));
|
||||
|
||||
procedure Check_Elab_Call;
|
||||
-- Add checks related to calls in elaboration code
|
||||
|
|
Loading…
Reference in New Issue