Re: [cfe-users] Why does clang not always produce constant value for same static constexpr

2019-09-25 Thread Christopher Williams via cfe-users
a recipe for some problematic compile-time to me... but > don't know. > > - Dave > > On Wed, Sep 25, 2019 at 12:37 PM Christopher Williams via cfe-users > mailto:cfe-users@lists.llvm.org>> wrote: > > Given the code below, clang produces a constant value for test1, t

[cfe-users] Why does clang not always produce constant value for same static constexpr

2019-09-25 Thread Christopher Williams via cfe-users
Given the code below, clang produces a constant value for test1, test2 and test4. Why doesn't it for test3? This is more of a curious query, than a request for help, but if someone does have the answer, I'd appreciate as much detail as possible. || |staticconstexprintcount_x(constchar*str){int