PR c++/84338 - wrong variadic sizeof.
authorJason Merrill <jason@redhat.com>
Tue, 13 Feb 2018 14:22:01 +0000 (09:22 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 13 Feb 2018 14:22:01 +0000 (09:22 -0500)
commit812c0795283d5eaebf84922e3d1951fdba1936c5
tree5e83af3177cc1b7f03012582a3c24d981ede24bd
parent1bbae6518fedd77c6e956bada60f429587ecd6c3
PR c++/84338 - wrong variadic sizeof.

* pt.c (argument_pack_select_arg): Like the macro, but look through
a pack expansion.
(tsubst, tsubst_copy, dependent_template_arg_p): Use it.
(extract_fnparm_pack): Do make_pack_expansion.
(extract_locals_r): Do strip a pack expansion.
* cp-tree.h (ARGUMENT_PACK_SELECT_ARG): Remove.

From-SVN: r257626
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic13.C [new file with mode: 0644]