From: naruse@... Date: 2021-02-02T10:08:44+00:00 Subject: [ruby-core:102381] [Ruby master Bug#17534] Pattern-matching is broken with find pattern Issue #17534 has been updated by naruse (Yui NARUSE). Backport changed from 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED to 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONE ruby_3_0 2dc39e2fd45aacd5fcd33ed80f602bd6f2ddb504 merged revision(s) 1b89b99941548fdb65305dd9a412082e7fdba45a. ---------------------------------------- Bug #17534: Pattern-matching is broken with find pattern https://bugs.ruby-lang.org/issues/17534#change-90242 * Author: zverok (Victor Shepelev) * Status: Closed * Priority: Normal * Backport: 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONE ---------------------------------------- The minimal reproduction code: ```ruby case [1, 2, 3] in y puts "branch1" in [*, x, *] puts "branch2" else puts "branch3" end ``` This outputs long "raw disasm" sequence, and then ``` --------------------- break_pm.rb:6: argument stack underflow (-1) break_pm.rb: compile error (SyntaxError) ``` ``` $ ruby -v ruby 3.1.0dev (2021-01-13T09:12:49Z master 6f6dfdcc68) [x86_64-linux] ``` -- https://bugs.ruby-lang.org/ Unsubscribe: