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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Eric Botcazou
<[email protected]>:

https://gcc.gnu.org/g:2cd87a774d39baecae4dab22a9704fb4651da705

commit r15-10383-g2cd87a774d39baecae4dab22a9704fb4651da705
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