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

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

https://gcc.gnu.org/g:172634608a49603d10b471b0379c71cf53d3e2c0

commit r16-7147-g172634608a49603d10b471b0379c71cf53d3e2c0
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.

Reply via email to