https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104751
Arnaud Charlet <charlet at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |charlet at gcc dot gnu.org Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED --- Comment #1 from Arnaud Charlet <charlet at gcc dot gnu.org> --- The introduction of [] in Ada was a controversial one and this warning is meant to help disambiguate and simplify the Ada 2022 language, so this warning is intentional. You can use -gnatwaJ to disable it though, or pragma Warnings (Off, "*array aggregate*");