From 4a11d43f15368d59dcbe424b047dc8029e4e98c5 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 13 Aug 2020 18:19:49 +0200 Subject: [PATCH] [Ada] Fix oversight in Eval_Attribute for Bit_Position gcc/ada/ * sem_attr.adb (Eval_Attribute): Fix oversight for Bit_Position. --- gcc/ada/sem_attr.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2