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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Eric Botcazou
<ebotca...@gcc.gnu.org>:

https://gcc.gnu.org/g:0d87092f8897fe6e0a86a566bf3c6a924db152c6

commit r11-9522-g0d87092f8897fe6e0a86a566bf3c6a924db152c6
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Fri Jan 28 11:04:06 2022 +0100

    Fix wrong operator for universal_integer operands in instance

    This is a regression present on mainline and 11 branch: the transformation
    applied during expansion by Narrow_Large_Operation would incorrectly
perform
    name resolution for the operator again.

    gcc/ada/
            PR ada/104258
            * exp_ch4.adb (Narrow_Large_Operation): Also copy the entity, if
            any, when rewriting the operator node.

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

Reply via email to