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

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

https://gcc.gnu.org/g:1ad7ee43a0e32e246e69c398b9c37aa23a12c3b6

commit r15-10744-g1ad7ee43a0e32e246e69c398b9c37aa23a12c3b6
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