This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56041] Constexpr conversion function definition not found in template argument context
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Nov 2014 03:25:59 +0000
- Subject: [Bug c++/56041] Constexpr conversion function definition not found in template argument context
- Auto-submitted: auto-generated
- References: <bug-56041-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56041
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Nov 20 03:25:26 2014
New Revision: 217823
URL: https://gcc.gnu.org/viewcvs?rev=217823&root=gcc&view=rev
Log:
PR c++/56041
* cp-tree.h (struct processing_template_decl_sentinel): New.
* pt.c (instantiate_non_dependent_expr_internal): Split out from...
(instantiate_non_dependent_expr_sfinae): Here.
(convert_nontype_argument): Use them.
* constexpr.c (fold_non_dependent_expr): Use them.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-conv1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/pt.c