]> git.ipfire.org Git - thirdparty/gcc.git/commit
Ada: Fix assertion failure on problematic container aggregate
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 17 Jun 2025 16:55:39 +0000 (18:55 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Sat, 28 Jun 2025 09:44:32 +0000 (11:44 +0200)
commit80c55b15f8d6e6b1f10c193b60e19194a871070d
treedefb58221f3a926cdaa04dee8bf708b0e90e04ad
parentc0a55fcb05aeaa38a9bdbccf41c961b0c092a480
Ada: Fix assertion failure on problematic container aggregate

This is an assertion failure on code using a container aggregate in the
primitives referenced by the Aggregate aspect, which cannot work.

gcc/ada/
PR ada/120665
* sem_aggr.adb (Resolve_Container_Aggregate): Use robust guards.

gcc/testsuite/
* gnat.dg/specs/aggr8.ads: New test.
gcc/ada/sem_aggr.adb
gcc/testsuite/gnat.dg/specs/aggr8.ads [new file with mode: 0644]