https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86485
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed May 22 19:48:05 2019 New Revision: 271521 URL: https://gcc.gnu.org/viewcvs?rev=271521&root=gcc&view=rev Log: PR c++/86485 - simple_empty_class_p Yet another tweak that would have fixed this bug: we should treat INIT_EXPR and MODIFY_EXPR differently for determining whether this is a simple empty class copy, since a TARGET_EXPR on the RHS is direct initialization if INIT_EXPR but copy if MODIFY_EXPR. * cp-gimplify.c (simple_empty_class_p): Also true for MODIFY_EXPR. Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-gimplify.c