re PR c++/56041 (Constexpr conversion function definition not found in template argum...
commit1b5695e6100dec3f7c1e86ba5594471987cda466
authorJason Merrill <jason@redhat.com>
Thu, 20 Nov 2014 03:25:26 +0000 (19 22:25 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 20 Nov 2014 03:25:26 +0000 (19 22:25 -0500)
tree4e02eacae240a2fb6eb263ef634db37cd98148ac
parent9d39384c6b3173c71d17d39f4108e47ef46b886c
re PR c++/56041 (Constexpr conversion function definition not found in template argument context)

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.

From-SVN: r217823
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/constexpr-conv1.C [new file with mode: 0644]