This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66297] [C++14] [DR 1684] constexpr non-static member functions of non-literal types
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 31 May 2017 17:53:31 +0000
- Subject: [Bug c++/66297] [C++14] [DR 1684] constexpr non-static member functions of non-literal types
- Auto-submitted: auto-generated
- References: <bug-66297-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66297
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed May 31 17:52:58 2017
New Revision: 248752
URL: https://gcc.gnu.org/viewcvs?rev=248752&root=gcc&view=rev
Log:
PR c++/66297, DR 1684 - literal class and constexpr member fns
* constexpr.c (is_valid_constexpr_fn): Only complain about
non-literal enclosing class in C++11.
* class.c (finalize_literal_type_property): Likewise.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-dr1684.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/class.c
branches/gcc-7-branch/gcc/cp/constexpr.c
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-data1.C
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-diag1.C
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-diag3.C
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-memfn1.C
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-neg1.C