Right, that's the extreme case, where the problem is detected at compile time. Unfortunately, it's not a user-visible error message at compile time.
Need to try an example where the size isn't known until run time.
Need to try an example where the size isn't known until run time.
Link : https://godbolt.org/z/qT4TsKPxz