r271521 - in /trunk/gcc/cp: ChangeLog cp-gimpli...
jason@gcc.gnu.org
jason@gcc.gnu.org
Wed May 22 19:48:00 GMT 2019
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
More information about the Gcc-cvs
mailing list