re PR c++/43787 (memory copy of empty class (sizeof is one))
PR c++/43787 gcc: * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr returns GS_OK. (gimplify_modify_expr_rhs): Return GS_OK if anything changed. gcc/cp: * cp-gimplify.c (cp_gimplify_expr): Remove copies of empty classes. * call.c (build_over_call): Don't try to avoid INIT_EXPR copies here. From-SVN: r159072
Showing
This diff is collapsed.
Click to expand it.
gcc/testsuite/g++.dg/opt/empty1.C
0 → 100644
Please
register
or
sign in
to comment