* class.c (trivial_default_constructor_is_constexpr): Rename from
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Sep 2011 04:33:40 +0000 (04:33 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Sep 2011 04:33:40 +0000 (04:33 +0000)
commitaf18580616ce581d8d730b15b6e5cca76896f30b
treefa70f6e70fb4efbf0e60105886e9e43c79520291
parentbbab4abf33982e415a46fbc377c885606ce10dbe
* class.c (trivial_default_constructor_is_constexpr): Rename from
synthesized_default_constructor_is_constexpr.
(type_has_constexpr_default_constructor): Adjust.
(add_implicitly_declared_members): Call it instead.
(explain_non_literal_class): Explain about non-constexpr default ctor.
* cp-tree.h: Adjust.
* method.c (synthesized_method_walk): Adjust.
* semantics.c (explain_invalid_constexpr_fn): Handle defaulted
functions, too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178519 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/method.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-default-ctor.C [new file with mode: 0644]