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

--- Comment #4 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:3f682a796d6dff4642bd1a0258b6a4a77e01777f

commit r14-12276-g3f682a796d6dff4642bd1a0258b6a4a77e01777f
Author: Iain Buclaw <[email protected]>
Date:   Wed Jan 28 23:06:23 2026 +0100

    d: Fix ICE in ExprVisitor::visit, at d/expr.cc:2224 [PR123419]

    The original assert expected the type of `__traits(initSymbol)' to be
    exactly `const(void[])', but because D strips const from arrays to allow
    passing slices as mutable ranges to template functions, so it got turned
    into `const(void)[]'.

            PR d/123419

    gcc/d/ChangeLog:

            * expr.cc (ExprVisitor::visit (VarExp *)): Adjust assertion.

    gcc/testsuite/ChangeLog:

            * gdc.dg/pr123419.d: New test.

    (cherry picked from commit ddf94524f9accb47c1fc59191739ec34c5907eb8)

Reply via email to