]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix box accepted as second association of a generic formal package
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 20 Oct 2025 20:33:34 +0000 (22:33 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 3 Nov 2025 14:15:17 +0000 (15:15 +0100)
commit2671814409b19e9ce90c03e6837e21ae5cf085f1
tree03261ee1c9eb12b94feb44c3cd62192e929f4aa1
parent4ff0bd5f98728d14a91d62d44fe1fa4bdd0bee33
ada: Fix box accepted as second association of a generic formal package

The syntax is plain invalid because a box can be accepted as a positional
parameter only in the first place.

gcc/ada/ChangeLog:

PR ada/61127
* sem_ch12.adb (Associations.Match_Positional): Remove the always
false condition that guards the error on a positional box.
gcc/ada/sem_ch12.adb