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

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
https://gcc.gnu.org/g:13f8c71aebc7df388678c52cffbc11db980d8fa0

commit r13-8202-g13f8c71aebc7df388678c52cffbc11db980d8fa0
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Tue Jan 9 10:21:51 2024 +0100

    Fix internal error on anonymous access type equality

    This is a small regression present on the mainline and 13 branch, in the
    form of an internal error in gigi on anonymous access type equality.  We
    now need to also accept them for anonymous access types that point to
    compatible object subtypes in the language sense.

    gcc/ada/
            * gcc-interface/utils2.cc (build_binary_op) <EQ_EXPR>: Relax
            assertion for regular pointer types.

    gcc/testsuite/
          * gnat.dg/specs/anon4.ads: New test.

Reply via email to