diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-05 04:33:40 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-05 04:33:40 +0000 |
commit | af18580616ce581d8d730b15b6e5cca76896f30b (patch) | |
tree | fa70f6e70fb4efbf0e60105886e9e43c79520291 /gcc/cp/method.c | |
parent | bbab4abf33982e415a46fbc377c885606ce10dbe (diff) | |
download | gcc-af18580616ce581d8d730b15b6e5cca76896f30b.tar.gz |
* 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
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 74a3bdbd839..5b24f8f0285 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; } |