[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 --- Comment #16 from Jonathan Wakely --- (In reply to Seyyed Soroosh Hosseinalipour from comment #15) > @jason what is work around for gcc6 ? See comment 6. Name the pack.
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Seyyed Soroosh Hosseinalipour changed: What|Removed |Added CC||soorosh_abi at hotmail dot com --- Comment #15 from Seyyed Soroosh Hosseinalipour --- ITNOA @jason what is work around for gcc6 ? thanks
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED Target Milestone|8.3 |7.4 --- Comment #14 from Jason Merrill --- Fixed for 8.1/7.4.
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Jakub Jelinek changed: What|Removed |Added Target Milestone|8.2 |8.3 --- Comment #13 from Jakub Jelinek --- GCC 8.2 has been released.
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Jakub Jelinek changed: What|Removed |Added Target Milestone|8.0 |8.2 --- Comment #12 from Jakub Jelinek --- GCC 8.1 has been released.
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 --- Comment #11 from Jonathan Wakely --- *** Bug 68071 has been marked as a duplicate of this bug. ***
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 --- Comment #10 from Jason Merrill --- Author: jason Date: Tue Apr 3 17:46:35 2018 New Revision: 259047 URL: https://gcc.gnu.org/viewcvs?rev=259047&root=gcc&view=rev Log: PR c++/64095 - auto... parameter pack. * parser.c (cp_parser_parameter_declaration): Handle turning autos into packs here. (cp_parser_parameter_declaration_list): Not here. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic16.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/parser.c branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-mangle-1.C
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Jason Merrill changed: What|Removed |Added Known to work||8.0 Target Milestone|--- |8.0 --- Comment #9 from Jason Merrill --- Fixed for GCC 8 so far.
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 --- Comment #8 from Jason Merrill --- Author: jason Date: Mon Apr 2 18:20:04 2018 New Revision: 259015 URL: https://gcc.gnu.org/viewcvs?rev=259015&root=gcc&view=rev Log: PR c++/64095 - auto... parameter pack. * parser.c (cp_parser_parameter_declaration): Handle turning autos into packs here. (cp_parser_parameter_declaration_list): Not here. Added: trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic16.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/g++.dg/cpp1y/lambda-mangle-1.C
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Paolo Carlini changed: What|Removed |Added CC||vittorio.romeo at outlook dot com --- Comment #7 from Paolo Carlini --- *** Bug 71332 has been marked as a duplicate of this bug. ***
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Jonathan Wakely changed: What|Removed |Added CC||d25fe0be at outlook dot com --- Comment #6 from Jonathan Wakely --- *** Bug 81750 has been marked as a duplicate of this bug. ***
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Jonathan Wakely changed: What|Removed |Added CC||gufideg at gmail dot com --- Comment #5 from Jonathan Wakely --- *** Bug 80795 has been marked as a duplicate of this bug. ***
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 --- Comment #4 from Jonathan Wakely --- (In reply to Ed Catmur from comment #0) > Clang is similarly incorrect; Clang 3.5 had the same bug, but it was fixed for 3.6
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Jonathan Wakely changed: What|Removed |Added CC||gnu-9fbaow at upsuper dot org --- Comment #3 from Jonathan Wakely --- *** Bug 77451 has been marked as a duplicate of this bug. ***
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 --- Comment #2 from Paolo Carlini --- *** Bug 77616 has been marked as a duplicate of this bug. ***
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Patryk changed: What|Removed |Added CC||malekpatryk+gcc at gmail dot com --- Comment #1 from Patryk --- Related issue https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68071. I can confirm this is also a problem in 6.1.0 and 5.2.1. The workaround for me for this issue is to name the parameter pack that ends up being empty: #include int main() { auto f = [](auto&& arg1, auto&& arg2, auto&& ...x)// this works //auto f = [](auto&& arg1, auto&& arg2, auto&& ...x)// this gives the below error { std::cout << arg1 << arg2; }; f("a", "b"); } error on commented line on 5.2.1 main.cpp: In function βint main()β: main.cpp:10:13: error: no match for call to β(main()::) (const char [2], const char [2])β f("a", "b"); ^ main.cpp:5:51: note: candidate: template main()operator decltype (((main()::)0u).operator()(arg1, arg2, )) (*)(auto:1&&, auto:2&&, auto:3&&, ...)() const auto f = [](auto&& arg1, auto&& arg2, auto&& ...) ^ main.cpp:5:51: note: template argument deduction/substitution failed: main.cpp:10:13: note: candidate expects 1 argument, 2 provided f("a", "b"); ^ main.cpp:5:51: note: candidate: template main():: auto f = [](auto&& arg1, auto&& arg2, auto&& ...) ^ main.cpp:5:51: note: template argument deduction/substitution failed: main.cpp:10:13: note: candidate expects 3 arguments, 2 provided f("a", "b"); ^
[Bug c++/64095] [C++14] Ellipsis at end of generic lambda parameter-declaration-clause should be parsed as a parameter pack
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64095 Ville Voutilainen changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2014-12-08 CC||ville.voutilainen at gmail dot com Ever confirmed|0 |1