]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Error in determining accumulator subtype for a reduction expression
authorSteve Baird <baird@adacore.com>
Wed, 7 Feb 2024 21:52:58 +0000 (13:52 -0800)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 14 May 2024 08:19:52 +0000 (10:19 +0200)
commitd9f3a1d612eacc35027bc5ca42b0ee29b554306a
tree64f51179af0dc485ff4534201dd6483c7fe38f16
parentb2453909f68aa3e6810e4995bdcb0a555aab3902
ada: Error in determining accumulator subtype for a reduction expression

There was an earlier bug in determining the accumulator subtype for a
reduction expression in the case where the reducer subprogram is overloaded.
The fix for that bug introduced a recently-discovered
regression. Redo accumulator subtype computation in order to address
this regression while preserving the benefits of the earlier fix.

gcc/ada/

* exp_attr.adb: Move computation of Accum_Typ entirely into the
function Build_Stat.
gcc/ada/exp_attr.adb