http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41933

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sun Sep 15 19:34:42 2013
New Revision: 202605

URL: http://gcc.gnu.org/viewcvs?rev=202605&root=gcc&view=rev
Log:
    Core DR 904
    PR c++/41933
    * parser.c (cp_parser_lambda_introducer): Handle variadic capture.
    * lambda.c (add_capture): Handle variadic capture.
    (add_default_capture, lambda_capture_field_type): Likewise.
    (build_capture_proxy, register_capture_members): Likewise.
    * pt.c (register_specialization): Allow FIELD_DECL.
    (retrieve_specialization): Likewise.
    (find_parameter_packs_r): Handle FIELD_DECL and VAR_DECL.
    (tsubst_pack_expansion): Handle FIELD_DECL packs.
    (gen_elem_of_pack_expansion_instantiation): Likewise.
    (instantiate_class_template_1): Likewise.
    (tsubst_decl, tsubst_copy): Likewise.
    (tsubst_expr) [DECL_EXPR]: Handle capture proxy packs.
    (tsubst_copy_and_build) [VAR_DECL]: Likewise.
    * semantics.c (finish_non_static_data_member): Don't try to represent
    the type of a COMPOUND_REF of a FIELD_DECL pack.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-variadic2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/lambda.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c

Reply via email to