4 ms·
Literally the second example shows a failing case for Clang 5 where GCC is able to statically compute it at compile time.
by banachtarski 9y ago
Literally the second example shows a failing case for Clang 5 where GCC is able to statically compute it at compile time.
- andrepd 9y agoThat sounds like a bug in Clang?
- andrewprock 9y agoIt may not be a bug. The computation of Fibbonacci(10) requires a stack of ten frames. It may be that Clang has a limit on the depth of the stack for pre-compiled code.