NanoLog icon indicating copy to clipboard operation
NanoLog copied to clipboard

Fix error that exceed Clang's default -fconstexpr-steps value

Open gnaggnoyil opened this issue 3 years ago • 0 comments

From comments of the new test case added in NanoLogCpp17test.cc:

// This test is mainly intended to ensure that the constexpr implementation
// of getNumNibblesNeeded shall not exceed the maximum constexpr evaluation
// steps of a compiler. Implementation as of commit 2a94d70 would be
// evaluated in 1395813 steps under Clang 13.0.1-rc1, which is greater than
// the default value of Clang's `-fconstexpr-steps`, 1048576.

gnaggnoyil avatar Feb 05 '22 15:02 gnaggnoyil