Merge pull request #2167 from AndrejMitrovic/Fix10341

Issue 10341 - ICE on case-range statement without an associated switch statement

-----

I confirmed that the change was entirely unrelated to the auto-tester failures. So I re-merge this.