re PR c++/65942 ([C++14] cannot use std::function as comparator in algorithms)
authorJason Merrill <jason@redhat.com>
Tue, 2 Jun 2015 02:28:25 +0000 (22:28 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 2 Jun 2015 02:28:25 +0000 (22:28 -0400)
commit81371eff9bc7ef26172c925c923fdd28ac3622ce
treee73101948543e48f9fa6eaa1f25cffe11c9ab0be
parent603eaec49a32f4b409ca8c22e71e6f683c799758
re PR c++/65942 ([C++14] cannot use std::function as comparator in algorithms)

PR c++/65942
* decl2.c (mark_used): Don't always instantiate constexpr fns.
* constexpr.c (cxx_eval_call_expression): Instantiate them here.

From-SVN: r224008
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/decl2.c
gcc/testsuite/g++.dg/cpp0x/constexpr-decltype2.C [new file with mode: 0644]