]> gcc.gnu.org Git - gcc.git/commit
class.c (trivial_default_constructor_is_constexpr): Rename from synthesized_default_c...
authorJason Merrill <jason@redhat.com>
Mon, 5 Sep 2011 04:33:40 +0000 (00:33 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 5 Sep 2011 04:33:40 +0000 (00:33 -0400)
commitfd3faf2b21c97982448edb0aa47092759a3d0b33
treefa70f6e70fb4efbf0e60105886e9e43c79520291
parentaee8801251cc3fd10dc12e4fc48a0d0bc5f37019
class.c (trivial_default_constructor_is_constexpr): Rename from synthesized_default_constructor_is_constexpr.

* 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.

From-SVN: r178519
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]
This page took 0.058222 seconds and 5 git commands to generate.