[Bug c++/66297] [C++14] [DR 1684] constexpr non-static member functions of non-literal types
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 31 18:37:00 GMT 2017
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
More information about the Gcc-bugs
mailing list