ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: naruse@airemix.jp
To: ruby-core@ruby-lang.org
Subject: [ruby-core:102381] [Ruby master Bug#17534] Pattern-matching is broken with find pattern
Date: Tue, 02 Feb 2021 10:08:44 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-90242.20210202100843.710@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-17534.20210113144634.710@ruby-lang.org

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/

      parent reply	other threads:[~2021-02-02 10:09 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 ` [ruby-core:102218] " kazuki
2021-02-02 10:08 ` naruse [this message]

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-90242.20210202100843.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).