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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Iain Buclaw
<ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:88b3c896602036b61005501981b6f4a4deca59b0

commit r14-11667-g88b3c896602036b61005501981b6f4a4deca59b0
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Wed Apr 16 01:28:53 2025 +0200

    d: Fix ICE: type variant differs by TYPE_MAX_VALUE with -g [PR119826]

    Forward referenced enum types were never fixed up after the main
    ENUMERAL_TYPE was finished.  All flags set are now propagated to all
    variants after its mode, size, and alignment has been calculated.

            PR d/119826

    gcc/d/ChangeLog:

            * types.cc (TypeVisitor::visit (TypeEnum *)): Propagate flags of
main
            enum types to all forward-referenced variants.

    gcc/testsuite/ChangeLog:

            * gdc.dg/debug/imports/pr119826b.d: New test.
            * gdc.dg/debug/pr119826.d: New test.

    (cherry picked from commit c5ffab99a5a962aa955310e74ca0a4be5c1acf30)

Reply via email to