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

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

https://gcc.gnu.org/g:34e3f1b8f3b3910352be1d011a7f24103f2b211b

commit r14-12281-g34e3f1b8f3b3910352be1d011a7f24103f2b211b
Author: Iain Buclaw <[email protected]>
Date:   Thu Jan 29 16:26:21 2026 +0100

    d: Fix Segmentation fault with redeclared symbols [PR123407]

    Issue an error if two symbols with the same assembler name have a
    mismatched TREE_CODE.

            PR d/123407

    gcc/d/ChangeLog:

            * decl.cc (get_symbol_decl): Handle declarations with matching
            assembler names, but different TREE_CODE.

    gcc/testsuite/ChangeLog:

            * gdc.dg/pr123407a.d: New test.
            * gdc.dg/pr123407b.d: New test.

    (cherry picked from commit 172634608a49603d10b471b0379c71cf53d3e2c0)

Reply via email to