From: zverok.offline@... Date: 2021-01-13T14:46:35+00:00 Subject: [ruby-core:102061] [Ruby master Bug#17534] Pattern-matching is broken with find pattern Issue #17534 has been reported by zverok (Victor Shepelev). ---------------------------------------- Bug #17534: Pattern-matching is broken with find pattern https://bugs.ruby-lang.org/issues/17534 * Author: zverok (Victor Shepelev) * Status: Open * Priority: Normal * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- 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: