https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117517

--- Comment #3 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:3d62068b69f5148450a0881a4ded7d0eae46d3c9

commit r16-4139-g3d62068b69f5148450a0881a4ded7d0eae46d3c9
Author: Eric Botcazou <[email protected]>
Date:   Tue Sep 30 11:55:18 2025 +0200

    Ada: Fix internal error on ill-formed Reduce attribute in Ada 2022

    This is an internal error on the new Reduce attribute of Ada 2022 when the
    programmer swaps its arguments(!)  The change makes it so that the compiler
    gives an error message instead.

    gcc/ada/
            PR ada/117517
            * sem_attr.adb (Resolve_Attribute) <Attribute_Reduce>: Try to
            resolve the reducer first.  Fix casing of error message.

    gcc/testsuite/
            * gnat.dg/reduce1.adb: New test.

Reply via email to