Consider the following code:
int main() {
auto l = [](auto){};
void(*p)(int) = l;
}
It works just fine both with GCC and clang.
Let's 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 any reason for which this code should be rejected or is it a bug of the compiler?
I'm going to open an issue, but I'd like to know if there exists any proposal that could have been implemented by one of them and not by the other one.