]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix assertion failure on null aggregate in generic with pragma Ada_2022
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 28 Oct 2024 08:56:44 +0000 (09:56 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 12 Nov 2024 13:05:45 +0000 (14:05 +0100)
commitfbbfad022c2f5bc6b481b41bd32faa278e343474
tree71ade4f0f2cb34f7004cdb1f8da51a76e1de11e2
parent2630b23534b8ccca71b149c8fe2dbd9aaa288c23
ada: Fix assertion failure on null aggregate in generic with pragma Ada_2022

This happens when the unit is instantiated in a non-Ada 2022 unit.

gcc/ada/ChangeLog:

PR ada/114127
* sem_aggr.adb (Is_Null_Aggregate): Replace test on Ada_Version
with test on Nkind.
gcc/ada/sem_aggr.adb