Do modern optimizing C++ compilers benefit from static_asserts?
For instance, if I assert an integer can only be in a restricted range, do compilers carry that information through the optimization steps or is it still just an integer?
Please do not answer that compilers could take it into account. The question is about whether or not current compilers do it.
__builtin_unreachableto do that.