method.c (synthesized_method_walk): Track constexprness too.
authorGabriel Dos Reis <gdr@cs.tamu.edu>
Wed, 27 Oct 2010 20:11:29 +0000 (16:11 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 27 Oct 2010 20:11:29 +0000 (16:11 -0400)
commit225a658415367be2700835fec916c091cd6a6945
treecfac62de4f33a49459c45849153f2c9b3bc6419c
parent91ea6df357db9c986090683aa22cfa1ea2547213
method.c (synthesized_method_walk): Track constexprness too.

* method.c (synthesized_method_walk): Track constexprness too.
(process_subob_fn, walk_field_subobs): Likewise.
(implicitly_declare_fn): Set DECL_DECLARED_CONSTEXPR_P.
(defaulted_late_check): Handle DECL_DECLARED_CONSTEXPR_P.
* class.c (add_implicitly_declared_members): Handle
constexpr default ctor.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r166014
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/method.c
gcc/testsuite/g++.dg/cpp0x/constexpr-delete.C [new file with mode: 0644]