"Range must be bounded by constant expression" - Error from a constraint block

In reply to naveensv:

I am retaining the legal_nexts declaration as local only and not freeing up in the post_randomize().
Should this affect the simulation so badly?