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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

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

commit r14-11506-gc839965c2ef689cfd62c4ddeb61d872c0d04366c
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Mar 5 14:24:50 2025 +0100

    debug/101533 - ICE with variant typedef DIE generation

    There's a sanity check in gen_type_die_with_usage that trips
    unnecessarily for a case where the relevant DIE has already been
    generated successfully in other ways.  The following keys the
    existing TREE_ASM_WRITTEN check on the correct object, honoring
    this and does nothing instead of ICEing for the testcase at hand.

            PR debug/101533
            * dwarf2out.cc (gen_type_die_with_usage): When we have
            output the typedef already do nothing for a typedef variant.
            Do not set TREE_ASM_WRITTEN on the type.

            * g++.dg/debug/pr101533.C: New testcase.

    (cherry picked from commit 99a3f013c3bb8bc022ca488b40aa18fd97b5224d)

Reply via email to