[Ada] Fix detection of array aggregates with single others associations
commit51ad879c72e77f8a4021256c4aaf5567c6f587cf
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 25 Oct 2021 19:15:58 +0000 (25 21:15 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 9 Nov 2021 09:44:47 +0000 (9 09:44 +0000)
tree56ecfcfb14a3ddf36a3ccc2a46f93eda1c08bfbb
parentca803c3d7ba5c6626d37e615aec1748ac4199c9b
[Ada] Fix detection of array aggregates with single others associations

gcc/ada/

* checks.adb (Apply_Constraint_Check): Guard against calling
Choices when the first association in an array aggregate is a
N_Iterated_Component_Association node.
gcc/ada/checks.adb