https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65942
--- Comment #15 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Jun 5 16:25:26 2015 New Revision: 224157 URL: https://gcc.gnu.org/viewcvs?rev=224157&root=gcc&view=rev Log: PR c++/65942 * decl2.c (mark_used): Don't always instantiate constexpr fns. * constexpr.c (cxx_eval_call_expression): Instantiate them here. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-decltype2.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/constexpr.c branches/gcc-5-branch/gcc/cp/decl2.c