]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix wrong initialization of library-level object by conditional expression
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 21 Feb 2025 09:03:22 +0000 (10:03 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 6 Jun 2025 14:44:45 +0000 (16:44 +0200)
commitcb3e76508b1af7ff5ba6e43592d7d67bbb96fac6
tree5bb4cd8f8706e2e4e9267e6f9200604de99fbf8a
parent1189522245be51d435fcc6d205e690f086f12e46
ada: Fix wrong initialization of library-level object by conditional expression

At library level the object must be allocated statically and with its bounds
when its nominal subtype is an unconstrained array type.

gcc/ada/ChangeLog:

* exp_ch4.adb (Insert_Conditional_Object_Declaration): Make sure the
object is allocated properly by the code generator at library level.
gcc/ada/exp_ch4.adb