ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:108280] [Ruby master Bug#18739] Wrong mid-rule index
@ 2022-04-18  9:36 nobu (Nobuyoshi Nakada)
  2022-09-03  6:18 ` [ruby-core:109828] " nagachika (Tomoyuki Chikanaga)
  0 siblings, 1 reply; 2+ messages in thread
From: nobu (Nobuyoshi Nakada) @ 2022-04-18  9:36 UTC (permalink / raw)
  To: ruby-core

Issue #18739 has been reported by nobu (Nobuyoshi Nakada).

----------------------------------------
Bug #18739: Wrong mid-rule index
https://bugs.ruby-lang.org/issues/18739

* Author: nobu (Nobuyoshi Nakada)
* Status: Assigned
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED
----------------------------------------
`arg in pattern` rule in the `expr` has a wrong index.

```diff
diff --git a/parse.y b/parse.y
index d391354beaa..c7ed2edea07 100644
--- a/parse.y
+++ b/parse.y
@@ -1785,7 +1785,7 @@ expr		: command_call
 		  p_top_expr_body
 		    {
 			pop_pvtbl(p, $<tbl>3);
-			p->ctxt.in_kwarg = $<ctxt>1.in_kwarg;
+			p->ctxt.in_kwarg = $<ctxt>2.in_kwarg;
 		    /*%%%*/
 			$$ = NEW_CASE3($1, NEW_IN($4, NEW_TRUE(&@4), NEW_FALSE(&@4), &@4), &@$);
 		    /*% %*/
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [ruby-core:109828] [Ruby master Bug#18739] Wrong mid-rule index
  2022-04-18  9:36 [ruby-core:108280] [Ruby master Bug#18739] Wrong mid-rule index nobu (Nobuyoshi Nakada)
@ 2022-09-03  6:18 ` nagachika (Tomoyuki Chikanaga)
  0 siblings, 0 replies; 2+ messages in thread
From: nagachika (Tomoyuki Chikanaga) @ 2022-09-03  6:18 UTC (permalink / raw)
  To: ruby-core

Issue #18739 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED to 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONE

ruby_3_1 ffd3d83ea8ccf111061a0f03036e5a093bb03674 merged revision(s) 08b6aacc1a14440e0f1644a05238559c6c585e38.

----------------------------------------
Bug #18739: Wrong mid-rule index
https://bugs.ruby-lang.org/issues/18739#change-99066

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONE
----------------------------------------
`arg in pattern` rule in the `expr` has a wrong index.

```diff
diff --git a/parse.y b/parse.y
index d391354beaa..c7ed2edea07 100644
--- a/parse.y
+++ b/parse.y
@@ -1785,7 +1785,7 @@ expr		: command_call
 		  p_top_expr_body
 		    {
 			pop_pvtbl(p, $<tbl>3);
-			p->ctxt.in_kwarg = $<ctxt>1.in_kwarg;
+			p->ctxt.in_kwarg = $<ctxt>2.in_kwarg;
 		    /*%%%*/
 			$$ = NEW_CASE3($1, NEW_IN($4, NEW_TRUE(&@4), NEW_FALSE(&@4), &@4), &@$);
 		    /*% %*/
```



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-03  6:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-18  9:36 [ruby-core:108280] [Ruby master Bug#18739] Wrong mid-rule index nobu (Nobuyoshi Nakada)
2022-09-03  6:18 ` [ruby-core:109828] " nagachika (Tomoyuki Chikanaga)

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