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

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

https://gcc.gnu.org/g:644e912ec0bde4fe2d3d2d719fed5979454b1c6d

commit r13-10056-g644e912ec0bde4fe2d3d2d719fed5979454b1c6d
Author: Iain Buclaw <[email protected]>
Date:   Tue Jan 27 21:51:40 2026 +0100

    d: Side effects not evaluated for array literals on stack [PR120096]

            PR d/120096

    gcc/d/ChangeLog:

            * expr.cc (ExprVisitor::visit (ArrayLiteralExp *)): Include saved
side
            effects in expression result.

    gcc/testsuite/ChangeLog:

            * gdc.dg/torture/pr120096.d: New test.

    (cherry picked from commit 8e869a0d0eff6dd26ba3c2cfade4b673a3c9db42)

Reply via email to