From: Eric Botcazou Date: Thu, 13 Aug 2020 16:19:49 +0000 (+0200) Subject: [Ada] Fix oversight in Eval_Attribute for Bit_Position X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a11d43f15368d59dcbe424b047dc8029e4e98c5;p=gcc.git [Ada] Fix oversight in Eval_Attribute for Bit_Position gcc/ada/ * sem_attr.adb (Eval_Attribute): Fix oversight for Bit_Position. --- diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index fcb04a2c62b..9e7699f4d32 100644 --- 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;