This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/56041] Constexpr conversion function definition not found in template argument context


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]