]> git.feebdaed.xyz Git - 0xmirror/gcc.git/commit
Ada: Fix illegal Aggregate aspect not rejected
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 26 Dec 2025 09:44:57 +0000 (10:44 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 26 Dec 2025 09:50:26 +0000 (10:50 +0100)
commit5cdb2a59308c9539b23e945c7f5f48743520e476
tree3a485049ff47d13c31f0529599449568d3ae29f8
parentd50b16aca071870c5c1ef279ddce5dcc586b76d8
Ada: Fix illegal Aggregate aspect not rejected

The Ada 2022 RM is adamant that the names specified in the Aggregate aspect
must denote "exactly one" subprogram, in other words that it is illegal to
use names that denote more than one subprogram in the Aggregate aspect.

gcc/ada/
PR ada/123289
* sem_ch13.adb (Resolve_Aspect_Aggregate.Resolve_Operation): Give
an error if the operation's name denotes more than one subprogram.

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