Consider the following code:
int main() { auto l = [](auto){}; void(*p)(int) = l; }
It works great with both GCC and clang .
Consider the following slightly modified version:
int main() { auto l = [](auto...){}; void(*p)(int) = l; }
In this case, clang still accepts it , while GCC rejects it .
Is there a reason this code should be rejected or is it a compiler error?
I am going to open the problem, but I would like to know if there is any proposal that could be implemented by one of them, and not the other.
c ++ gcc clang c ++ 14 generic-lambda
skypjack
source share