aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-07-18 17:14:54 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:20:19 -0300
commit32a93b577bcc8efc1947e3b5b7c37089ba3d4298 (patch)
treebc73f1a561d7d81fc389eb57798b6d4c708734bb /gcc/cp/constexpr.c
parentf331392eddf9ffdba1aa479f82702808d506ec15 (diff)
downloadgcc-32a93b577bcc8efc1947e3b5b7c37089ba3d4298.zip
gcc-32a93b577bcc8efc1947e3b5b7c37089ba3d4298.tar.gz
gcc-32a93b577bcc8efc1947e3b5b7c37089ba3d4298.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 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions