https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105212
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eric Botcazou <[email protected]>: https://gcc.gnu.org/g:7cd246560ffcf0ffb9c64a4e9773011b74020e75 commit r16-8687-g7cd246560ffcf0ffb9c64a4e9773011b74020e75 Author: Eric Botcazou <[email protected]> Date: Wed Apr 15 19:37:54 2026 +0200 Ada: Fix bogus warning for array variable on the LHS of aggregate assignment That's another ancient issue with -gnatwu, but the fix is again trivial. gcc/ada/ PR ada/105212 * exp_aggr.adb (Build_Array_Aggr_Code): If the aggregate comes from source, call Set_Referenced_Modified on the target. gcc/testsuite/ * gnat.dg/warn36.adb: New test.
