
Issue #19611 has been updated by emiratesevisaonline (Habiba Tayaba). nobu (Nobuyoshi Nakada) wrote in #note-4: www.emiratesevisaonline.com
Applied in changeset commit:git|c7bacf84f04201787d26e4a4be8aca61ff1e454b.
---------- [Bug #19611] Remove never-reachable branch in logical expression
---------------------------------------- Bug #19611: Ruby hangs up with `while true && true` https://bugs.ruby-lang.org/issues/19611#change-102983 * Author: tompng (tomoya ishida) * Status: Closed * Priority: Normal * ruby -v: ruby 3.2.0 (2022-12-25 revision a528908271) +YJIT [x86_64-darwin20] * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- Fails to run this code. It hangs up. Ctrl+C does not work. ~~~ruby def hoge while true && true end end ~~~ Compiling `while true && true; end` will also hangs up ~~~ruby irb(main):001:0> RubyVM::InstructionSequence.compile 'while true && true; end'; puts :done (no response) ~~~ -- https://bugs.ruby-lang.org/