Project

General

Profile

Actions

Bug #21006

closed

`defined?((receiver).method)` raises Stack consistency error

Added by tompng (tomoya ishida) 15 days ago. Updated 15 days ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +MN +PRISM [arm64-darwin22]
[ruby-core:120506]

Description

$ ruby -ve "defined?((foo).bar)"
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +MN +PRISM [arm64-darwin22]
-e:1: warning: possibly useless use of defined? in void context
-e:1: [BUG] Stack consistency error (sp: 7, bp: 6)

Actions #2

Updated by tompng (tomoya ishida) 15 days ago

  • Status changed from Open to Closed

Applied in changeset git|8fb17f86d7ef2a84f82c83a9509e311a07aa93fc.


[Bug #21006] Fix defined_expr compilation of method call with parenth… (#12518)

[Bug #21006] Fix defined_expr compilation of method call with parenthesized receiver

Actions

Also available in: Atom PDF

Like0
Like0Like0