diff options
author | Jason Merrill <jason@redhat.com> | 2011-09-05 00:33:40 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-09-05 00:33:40 -0400 |
commit | fd3faf2b21c97982448edb0aa47092759a3d0b33 (patch) | |
tree | fa70f6e70fb4efbf0e60105886e9e43c79520291 /gcc/cp/method.c | |
parent | aee8801251cc3fd10dc12e4fc48a0d0bc5f37019 (diff) | |
download | gcc-fd3faf2b21c97982448edb0aa47092759a3d0b33.zip gcc-fd3faf2b21c97982448edb0aa47092759a3d0b33.tar.gz gcc-fd3faf2b21c97982448edb0aa47092759a3d0b33.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 74a3bdb..5b24f8f 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -1187,7 +1187,7 @@ synthesized_method_walk (tree ctype, special_function_kind sfk, bool const_p, && (!copy_arg_p || cxx_dialect < cxx0x)) { if (constexpr_p && sfk == sfk_constructor) - *constexpr_p = synthesized_default_constructor_is_constexpr (ctype); + *constexpr_p = trivial_default_constructor_is_constexpr (ctype); return; } |