https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114127
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marc Poulhi?s <d...@gcc.gnu.org>: https://gcc.gnu.org/g:fbbfad022c2f5bc6b481b41bd32faa278e343474 commit r15-5157-gfbbfad022c2f5bc6b481b41bd32faa278e343474 Author: Eric Botcazou <ebotca...@adacore.com> Date: Mon Oct 28 09:56:44 2024 +0100 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.