PR c++/85149 - generic lambda and constexpr if.
authorJason Merrill <jason@redhat.com>
Tue, 3 Apr 2018 17:41:12 +0000 (13:41 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 3 Apr 2018 17:41:12 +0000 (13:41 -0400)
commit1456e764105702a0bb6c9be13d8eef7f21990a79
treea2a7b1c3ad63b40b6b58d47dad2b0efcbde9f65e
parent3f759575d3675150e665be997dd1e404e5c011f4
PR c++/85149 - generic lambda and constexpr if.

* pt.c (build_extra_args, add_extra_args): Split from
tsubst_pack_expansion.
(tsubst_expr) [IF_STMT]: Use them.
* cp-tree.h (IF_STMT_EXTRA_ARGS): New.

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