https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84338

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Feb 13 14:22:01 2018
New Revision: 257626

URL: https://gcc.gnu.org/viewcvs?rev=257626&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic13.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c

Reply via email to