[Bug c++/48948] [C++0x] constexpr friend function cannot be defined in-class
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 20 19:40:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48948
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-20 19:02:46 UTC ---
Author: jason
Date: Fri May 20 19:02:42 2011
New Revision: 173975
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173975
Log:
PR c++/48948
* class.c (finalize_literal_type_property): Only check
for constexpr member functions of non-literal class.
* decl.c (cp_finish_decl): Don't call validate_constexpr_fundecl.
* semantics.c (literal_type_p): Call complete_type.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-friend.C
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-incomplete1.C
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-incomplete2.C
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-incomplete3.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/class.c
branches/gcc-4_6-branch/gcc/cp/decl.c
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-memfn1.C
More information about the Gcc-bugs
mailing list