ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:117434] [Ruby master Bug#20409] Missing reporting some invalid breaks
@ 2024-04-03 16:23 kddnewton (Kevin Newton) via ruby-core
  2024-04-03 16:24 ` [ruby-core:117435] " kddnewton (Kevin Newton) via ruby-core
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2024-04-03 16:23 UTC (permalink / raw
  To: ruby-core; +Cc: kddnewton (Kevin Newton)

Issue #20409 has been reported by kddnewton (Kevin Newton).

----------------------------------------
Bug #20409: Missing reporting some invalid breaks
https://bugs.ruby-lang.org/issues/20409

* Author: kddnewton (Kevin Newton)
* Status: Open
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

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

* [ruby-core:117435] [Ruby master Bug#20409] Missing reporting some invalid breaks
  2024-04-03 16:23 [ruby-core:117434] [Ruby master Bug#20409] Missing reporting some invalid breaks kddnewton (Kevin Newton) via ruby-core
@ 2024-04-03 16:24 ` kddnewton (Kevin Newton) via ruby-core
  2024-04-03 16:25 ` [ruby-core:117436] " kddnewton (Kevin Newton) via ruby-core
  2024-04-04  3:46 ` [ruby-core:117439] " nobu (Nobuyoshi Nakada) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2024-04-03 16:24 UTC (permalink / raw
  To: ruby-core; +Cc: kddnewton (Kevin Newton)

Issue #20409 has been updated by kddnewton (Kevin Newton).


Sorry hit enter too soon...

```ruby
def a
  break
rescue
  b while c
end
```

```
def a
  break
ensure
  b while c
end
```

----------------------------------------
Bug #20409: Missing reporting some invalid breaks
https://bugs.ruby-lang.org/issues/20409#change-107811

* Author: kddnewton (Kevin Newton)
* Status: Open
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

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

* [ruby-core:117436] [Ruby master Bug#20409] Missing reporting some invalid breaks
  2024-04-03 16:23 [ruby-core:117434] [Ruby master Bug#20409] Missing reporting some invalid breaks kddnewton (Kevin Newton) via ruby-core
  2024-04-03 16:24 ` [ruby-core:117435] " kddnewton (Kevin Newton) via ruby-core
@ 2024-04-03 16:25 ` kddnewton (Kevin Newton) via ruby-core
  2024-04-04  3:46 ` [ruby-core:117439] " nobu (Nobuyoshi Nakada) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2024-04-03 16:25 UTC (permalink / raw
  To: ruby-core; +Cc: kddnewton (Kevin Newton)

Issue #20409 has been updated by kddnewton (Kevin Newton).


I think

```ruby
END { break }
```

should also be a syntax error, as it seems to always result in a `LocalJumpError`, but I could be wrong.

----------------------------------------
Bug #20409: Missing reporting some invalid breaks
https://bugs.ruby-lang.org/issues/20409#change-107812

* Author: kddnewton (Kevin Newton)
* Status: Open
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

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

* [ruby-core:117439] [Ruby master Bug#20409] Missing reporting some invalid breaks
  2024-04-03 16:23 [ruby-core:117434] [Ruby master Bug#20409] Missing reporting some invalid breaks kddnewton (Kevin Newton) via ruby-core
  2024-04-03 16:24 ` [ruby-core:117435] " kddnewton (Kevin Newton) via ruby-core
  2024-04-03 16:25 ` [ruby-core:117436] " kddnewton (Kevin Newton) via ruby-core
@ 2024-04-04  3:46 ` nobu (Nobuyoshi Nakada) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-04-04  3:46 UTC (permalink / raw
  To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)

Issue #20409 has been updated by nobu (Nobuyoshi Nakada).


It reproduces only with a modifier `while`/`until`, even without `rescue`/`ensure`.

```ruby
begin
  break
  nil while false
end
```


----------------------------------------
Bug #20409: Missing reporting some invalid breaks
https://bugs.ruby-lang.org/issues/20409#change-107815

* Author: kddnewton (Kevin Newton)
* Status: Open
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

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

end of thread, other threads:[~2024-04-04  3:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-03 16:23 [ruby-core:117434] [Ruby master Bug#20409] Missing reporting some invalid breaks kddnewton (Kevin Newton) via ruby-core
2024-04-03 16:24 ` [ruby-core:117435] " kddnewton (Kevin Newton) via ruby-core
2024-04-03 16:25 ` [ruby-core:117436] " kddnewton (Kevin Newton) via ruby-core
2024-04-04  3:46 ` [ruby-core:117439] " nobu (Nobuyoshi Nakada) via ruby-core

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