class.c (is_really_empty_class): Work when type is not complete.
authorJason Merrill <jason@redhat.com>
Mon, 1 Nov 2010 02:04:48 +0000 (22:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 1 Nov 2010 02:04:48 +0000 (22:04 -0400)
commit0930cc0ece835ab77a30d8b5894a8910f55d4054
treef8e8b942d2e97fd64107a2ee74fb2dc1596e8511
parentec52b1115dda4b0e38aa5620b0c3914b69008a24
class.c (is_really_empty_class): Work when type is not complete.

* class.c (is_really_empty_class): Work when type is not complete.
(synthesized_default_constructor_is_constexpr): New.
(add_implicitly_declared_members): Use it.
(type_has_constexpr_default_constructor): Likewise.
* cp-tree.h: Declare it.
* method.c (synthesized_method_walk): Use it.

From-SVN: r166124
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/method.c