re PR c++/58511 ([c++11] ICE using static const member variable in constexpr)
commite89ff446df48a43c632c316e64a5fbb1b95d227e
authorJason Merrill <jason@redhat.com>
Mon, 14 Jul 2014 05:25:37 +0000 (14 01:25 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 14 Jul 2014 05:25:37 +0000 (14 01:25 -0400)
tree6b91ee2146e4d91b83d33d812cb537248cb4a833
parent1ea3b9879b670a30e176046fc8e69b5c9e862c80
re PR c++/58511 ([c++11] ICE using static const member variable in constexpr)

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.

From-SVN: r212507
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/constexpr-inhctor1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/nsdmi3.C