This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/68071] Generic lambda variadic argument pack cannot be empty
- From: "rs2740 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Nov 2015 09:04:44 +0000
- Subject: [Bug c++/68071] Generic lambda variadic argument pack cannot be empty
- Auto-submitted: auto-generated
- References: <bug-68071-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68071
TC <rs2740 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rs2740 at gmail dot com
--- Comment #1 from TC <rs2740 at gmail dot com> ---
auto l = [](auto&& x, auto&&...y) { return x; };
l(1);
compiles in GCC. This looks like a parsing issue - the ... is being parsed as
C-style varargs instead of a pack.