]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix pragma Compile_Time_Error for alignment of array types
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 19 Jan 2024 10:46:16 +0000 (11:46 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 13 May 2024 08:03:28 +0000 (10:03 +0200)
commit2fc8ea4af4ad63a9675aef812f746fa91ecfabc8
tree65b89cb9c3da269078d9f411f87a94d08b85189a
parentc573c56bfa31d61ec13331c7a785d5fdc60cc8b0
ada: Fix pragma Compile_Time_Error for alignment of array types

The pragma is consistenly rejected for the alignment of array types because
Eval_Attribute does not evaluate it even if it is known.

gcc/ada/

* sem_attr.adb (Eval_Attribute): Treat Alignment like Component_Size
for array types.
gcc/ada/sem_attr.adb