Uh? Why couldn't a computation be constant?
constexpr auto size = 4;
constexpr std::array<int, size> arr = {1, 2, 3, 4};
constexpr auto i = 2;
constexpr auto x = arr[i];