https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58511

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jul 14 05:25:37 2014
New Revision: 212507

URL: https://gcc.gnu.org/viewcvs?rev=212507&root=gcc&view=rev
Log:
    PR c++/58511
    * semantics.c (is_instantiation_of_constexpr): Return true for
    defaulted functions, too.
    (explain_invalid_constexpr_fn): Only use
    explain_implicit_non_constexpr if !DECL_DECLARED_CONSTEXPR_P.
    * method.c (explain_implicit_non_constexpr): Pass
    DECL_INHERITED_CTOR_BASE to explain_implicit_non_constexpr.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-inhctor1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/method.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi3.C

Reply via email to