[Bug c++/68071] Generic lambda variadic argument pack cannot be empty
rs2740 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Nov 3 09:04:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list