diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-07-18 17:14:54 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-07-30 23:44:31 +0200 |
commit | 7508a7e958ea06eb311a4a106312634eaf6d40c3 (patch) | |
tree | c3d3f96bb65452d64418a4f759a902275f7141f1 /libcc1 | |
parent | 873b45d39c14fee6b68032b83ea6bfbc023e3379 (diff) | |
download | gcc-7508a7e958ea06eb311a4a106312634eaf6d40c3.zip gcc-7508a7e958ea06eb311a4a106312634eaf6d40c3.tar.gz gcc-7508a7e958ea06eb311a4a106312634eaf6d40c3.tar.bz2 |
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.
Diffstat (limited to 'libcc1')
0 files changed, 0 insertions, 0 deletions