I’m learning variadic templates. The following program:
#include <iostream>
template <typename ...T>
void f (T... t)
{ std::cout << sizeof...(t); }
int main()
{
f(1,2,3);
}
prints 3
and exits cleanly when compiled with GCC but gives warnings about stack frame size exceeding limit and crashes with clang. I’m using Wandbox to experiment.
What’s going on here?