From: "k0kubun (Takashi Kokubun) via ruby-core" Date: 2022-12-26T06:42:26+00:00 Subject: [ruby-core:111438] [Ruby master Bug#19263] MJIT fails to compile multiple values in a single case in Ruby 3.2.0 Issue #19263 has been reported by k0kubun (Takashi Kokubun). ---------------------------------------- Bug #19263: MJIT fails to compile multiple values in a single case in Ruby 3.2.0 https://bugs.ruby-lang.org/issues/19263 * Author: k0kubun (Takashi Kokubun) * Status: Open * Priority: Normal * Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED ---------------------------------------- ``` $ 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 to 3.2.1. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/