When I exceed the limit with gcc, I get this error message:
error: constexpr evaluation depth exceeds maximum of 512 (use -fconstexpr-depth= to increase the maximum)
and according to the documentation, clang understands the same option.
سؤال
Can constexpr compile-time recursion limit be configured through command line options for clang or gcc? How?
المحلول
When I exceed the limit with gcc, I get this error message:
error: constexpr evaluation depth exceeds maximum of 512 (use -fconstexpr-depth= to increase the maximum)
and according to the documentation, clang understands the same option.