From: kazuki@callcc.net
To: ruby-core@ruby-lang.org
Subject: [ruby-core:102218] [Ruby master Bug#17534] Pattern-matching is broken with find pattern
Date: Sat, 23 Jan 2021 12:31:53 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-90065.20210123123153.710@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-17534.20210113144634.710@ruby-lang.org
Issue #17534 has been updated by ktsj (Kazuki Tsujimoto).
Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN to 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED
Status changed from Open to Closed
@palkan:
Thanks to fix!
@naruse:
Could you backport 1b89b99941548fdb65305dd9a412082e7fdba45a to 3.0?
----------------------------------------
Bug #17534: Pattern-matching is broken with find pattern
https://bugs.ruby-lang.org/issues/17534#change-90065
* Author: zverok (Victor Shepelev)
* Status: Closed
* Priority: Normal
* Backport: 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED
----------------------------------------
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/
next prev parent reply other threads:[~2021-01-23 12:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-13 14:46 [ruby-core:102061] [Ruby master Bug#17534] Pattern-matching is broken with find pattern zverok.offline
2021-01-18 7:18 ` [ruby-core:102131] " dementiev.vm
2021-01-18 16:59 ` [ruby-core:102140] " dementiev.vm
2021-01-18 20:32 ` [ruby-core:102144] " dementiev.vm
2021-01-18 21:27 ` [ruby-core:102145] " dementiev.vm
2021-01-23 12:31 ` kazuki [this message]
2021-02-02 10:08 ` [ruby-core:102381] " naruse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-90065.20210123123153.710@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).