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

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

https://gcc.gnu.org/g:89d2007d211947c0085c6852749a7d348cb458fd

commit r14-10753-g89d2007d211947c0085c6852749a7d348cb458fd
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Wed Sep 11 19:42:03 2024 +0200

    ada: Fix bogus error in instantiation with formal package

    The compiler reports that an actual does not match the formal when there
    is a defaulted formal discrete type because Check_Formal_Package_Instance
    fails to skip the implicit base type generated by the compiler.

    gcc/ada/ChangeLog:
            PR ada/114636
            * sem_ch12.adb (Check_Formal_Package_Instance): For a defaulted
            formal discrete type, skip the generated implicit base type.

Reply via email to