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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:7508a7e958ea06eb311a4a106312634eaf6d40c3

commit r11-2443-g7508a7e958ea06eb311a4a106312634eaf6d40c3
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Sat Jul 18 17:14:54 2020 +0200

    d: Fix associative array literals that don't have alignment holes filled

    Associative array literal keys with alignment holes are now filled using
    memset() prior to usage, with LTR evaluation of side-effects enforced.

    gcc/d/ChangeLog:

            PR d/96152
            * d-codegen.cc (build_array_from_exprs): New function.
            * d-tree.h (build_array_from_exprs): Declare.
            * expr.cc (ExprVisitor::visit (AssocArrayLiteralExp *)): Use
            build_array_from_exprs to generate key and value arrays.

    gcc/testsuite/ChangeLog:

            PR d/96152
            * gdc.dg/pr96152.d: New test.

Reply via email to