cp-gimplify.c (simple_empty_class_p): New.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 11 Mar 2015 15:01:37 +0000 (15:01 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Wed, 11 Mar 2015 15:01:37 +0000 (15:01 +0000)
commit25de0a29fb99fb04f25f16016634de912319676f
tree36bf394f0a087db303d57dc1e747cfedbfecc515
parent6b98fab5f1ae21b76813630539e500e04c8a6952
cp-gimplify.c (simple_empty_class_p): New.

* cp-gimplify.c (simple_empty_class_p): New.
* cp-gimplify.c (cp_gimplify_expr): Handle RETURN_EXPR.  Abstract
the code for empty class copies into simple_empty_class_p, and
adapt it to handle COMPOUND_EXPRs.

From-SVN: r221347
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/g++.dg/other/empty-class.C [new file with mode: 0644]