[Bug c++/56041] Constexpr conversion function definition not found in template argument context
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 20 03:26:00 GMT 2014
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
More information about the Gcc-bugs
mailing list