Why is this an issue?

Choices outside of range are useless and should be removed.

How to fix it

Code examples

Noncompliant code example

X : in integer range 7 downto 0;
...
case X is
  when 0 =>
    Z <= A;
  when 1 to 8 => -- Noncompliant: '8' is outside of range 7 downto 0
    Z <= B;
end case;

Compliant solution

X : in integer range 7 downto 0;
...
case X is
  when 0 =>
    Z <= A;
  when 1 to 7 =>
    Z <= B;
end case;