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

Reply via email to