Message ID | 20201022121212.GA3971@adacore.com |
---|---|
State | New |
Headers | show |
Series | [Ada] Fix oversight in Eval_Attribute for Bit_Position | expand |
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -7914,7 +7914,7 @@ package body Sem_Attr is if Known_Static_Component_Bit_Offset (CE) then Compile_Time_Known_Attribute - (N, Component_Bit_Offset (Entity (P))); + (N, Component_Bit_Offset (CE)); else Check_Expressions; end if;