]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix others error message location
authorRonan Desplanques <desplanques@adacore.com>
Fri, 8 Mar 2024 13:42:59 +0000 (14:42 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 17 May 2024 08:21:03 +0000 (10:21 +0200)
commit34ac60eb88e489991b420e82b98a039a31df262f
treeb177caddbdf33772075b6c52ebba8d30ec1cabad
parentd77c12eb33c7a0a461f6928a8fb303378aaf2e2f
ada: Fix others error message location

Before this patch, the compiler pointed at the wrong component
association when reporting an illegal occurrence of "others" in an
aggregate. This patch fixes this by keeping track of which choice
contains the occurrence of "others" when resolving array aggregates.

gcc/ada/

* sem_aggr.adb (Resolve_Array_Aggregate): Fix location of error
message.
gcc/ada/sem_aggr.adb