re PR c++/48296 ([C++0x] constexpr member function cannot use the class type it belon...
authorJason Merrill <jason@redhat.com>
Tue, 29 Mar 2011 13:27:25 +0000 (09:27 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 29 Mar 2011 13:27:25 +0000 (09:27 -0400)
commita90caaa2fde8b592910b232176e6f0f6188dcd0a
tree7b08622bab7763a062b742650b2f7d04fb7c3a28
parent915829ccf1a380e5af8d7f59f53a9fe75bc778b1
re PR c++/48296 ([C++0x] constexpr member function cannot use the class type it belongs as parameter type or return type)

PR c++/48296
* decl.c (cp_finish_decl): Defer validation of constexpr member
functions.
* class.c (finalize_literal_type_property): Validate them here.
* semantics.c (is_valid_constexpr_fn): Don't check completeness.

From-SVN: r171661
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-memfn1.C [new file with mode: 0644]