Is there an illegal state when you specify both a range and an index?