News for hackers. Stuff that matters.
Re:C++17 constexpr everything, or as much as the compiler can by banachtarski on Thursday December 28, 2017 @10:25AM (#16022441)
Literally the second example shows a failing case for Clang 5 where GCC is able to statically compute it at compile time.
Re:C++17 constexpr everything, or as much as the compiler can by andrepd on Thursday December 28, 2017 @11:32AM (#16023027)
That sounds like a bug in Clang?
Re:C++17 constexpr everything, or as much as the compiler can by andrewprock on Thursday December 28, 2017 @11:55AM (#16023181)
It 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.