Re:The Dark Side of C++ [pdf]
by geophile on Monday August 02, 2010 @01:06PM
(#1568198)
Stack overflow for large n.
[ Parent
| on HN ]
Ah, I didn't consider that. A decent optimizing compiler should be able to remove all the tail calls (G++ did this with your code and -O2), so this shouldn't be a problem in practice, except maybe for debugging.