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

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

https://gcc.gnu.org/g:b16a3dea1d1bfa3dde556af84b3592140320b605

commit r12-6912-gb16a3dea1d1bfa3dde556af84b3592140320b605
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