]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix pragma Compile_Time_Error for sizes of nonstatic array types
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 19 Nov 2024 12:04:08 +0000 (13:04 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 12 Dec 2024 09:57:58 +0000 (10:57 +0100)
commit36023478657c64cb72bba3b4f9b7ed815997ae9f
tree881524cea289178870a5bb8c61020dafec289cd2
parent92d65775d773f746ab999e94a405a26e3c3a3cab
ada: Fix pragma Compile_Time_Error for sizes of nonstatic array types

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

gcc/ada/ChangeLog:

* sem_attr.adb (Eval_Attribute): Treat the various size attributes
like Component_Size for nonstatic array types.
gcc/ada/sem_attr.adb