Bug #19263
Updated by k0kubun (Takashi Kokubun) almost 3 years ago
```
$ cat test.rb
def test(a)
case a
when true, false
a
end
end
test(true)
test(true)
$ ruby --mjit-verbose=1 --mjit-wait --mjit-call-threshold=2 test.rb
/tmp/_ruby_mjit_p237606u1.c: In function ‘_mjit0’:
/tmp/_ruby_mjit_p237606u1.c:58:7: error: duplicate case value
58 | case 19:
| ^~~~
compilation terminated due to -Wfatal-errors.
Successful MJIT finish
```
I'd like to fix this in master and ask the branch maintainer to backport this fix https://github.com/ruby/ruby/commit/fc03ba50f1ff6c30f7c654f564b4dffbed0844ef to (only) ruby_3_2 branch. 3.2.1.