diff options
author | Ronan Desplanques <desplanques@adacore.com> | 2024-03-08 14:42:59 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-05-17 10:21:03 +0200 |
commit | 34ac60eb88e489991b420e82b98a039a31df262f (patch) | |
tree | b177caddbdf33772075b6c52ebba8d30ec1cabad /libcpp | |
parent | d77c12eb33c7a0a461f6928a8fb303378aaf2e2f (diff) | |
download | gcc-34ac60eb88e489991b420e82b98a039a31df262f.zip gcc-34ac60eb88e489991b420e82b98a039a31df262f.tar.gz gcc-34ac60eb88e489991b420e82b98a039a31df262f.tar.bz2 |
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.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions