Can you give an example of stack overflow in C++? Other than the recursive case:
void foo() { foo(); }
Compile-time example:
template struct Factorial { enum { value = N * Factorial::value }; }; // ... { int overflow = Factorial<10>::value; }