From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 15DB61F5CB for ; Mon, 16 Sep 2024 15:30:00 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=fcuudZ6C; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=MJ/1lGKF; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1726500567; bh=xB6omPqMCDLhhiKSOxPghJVgJByF2wbdPaB36rlibjg=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=fcuudZ6CbEKWqH5M1wZFBpR7OCD73ONSO5wcL4HkUPGpF+RfeUDvs/XiXXw5SUzEW JRJNg8MG0vPAJ7t+O5mY9rxIByeQHHZoS0CKdWEdTcs8dWBXwP7WTBlHceLNYFkib+ q7zcsais8Fnmkb7e+v8ny4QarNTuKz6Eke8Vd1jQ= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id D24FE43DF7 for ; Mon, 16 Sep 2024 15:29:27 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=MJ/1lGKF; dkim-atps=neutral Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id C124E43D96 for ; Mon, 16 Sep 2024 15:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=U+D/V6MfQupjr8SLZp6Qxaf2sOqe5HLI4ywlRLQ6HlY=; b=MJ/1lGKF0xVoAqUmM7sgtXeHl+Zd5xQhjbwNga8eFD97Ni5ap8laAljNoGIZhFQbeWta lfo6midnwFdYKm7R3bfIaDfEzbORPgeA1ndEogsU8Ix7E734C+5jGyoGTzLWsIw3MmxwR7 ROVcoXPEUNooZnC9i4kSm2l3X5bMRFKMDxIqSUq40Y+CBagv0a/tiTqdYn/4cVMJTiTXh1 QtzT5wNMo7r+4VLQKPHi8S29Ut9bqsgV25vkwYXT8miBYTIVTX6YDDEFw1hP3XPXhatRqO tJQPT+Fujjtb601adJ7FiFguBdgCZbe7To4zAANneRmypHpE5Tp9JbrHkGXGfb/g== Received: by recvd-76b48cd7f5-2q6tr with SMTP id recvd-76b48cd7f5-2q6tr-1-66E84ECA-29 2024-09-16 15:29:14.868710722 +0000 UTC m=+336803.822740672 Received: from herokuapp.com (unknown) by geopod-ismtpd-27 (SG) with ESMTP id LWw7pmq4Q6StPBOgXmKw5A for ; Mon, 16 Sep 2024 15:29:14.854 +0000 (UTC) Date: Mon, 16 Sep 2024 15:29:14 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20748 X-Redmine-Issue-Author: luke-gru X-Redmine-Issue-Assignee: kddnewton X-Redmine-Issue-Priority: Normal X-Redmine-Sender: luke-gru X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 95859 X-SG-EID: =?us-ascii?Q?u001=2Eu2jV1cZCX3JeC9XuCMpKrPL8QYex4qqdacL0+MyIJYZ8T98+Yamf0oq9z?= =?us-ascii?Q?aSwYa9OgKS1yrZArj33QXc1KJqA8PopG+kgVPq9?= =?us-ascii?Q?cjRbGB5G3hf5S4H3m9TvAtgtsTx5l7UGjP6DPA5?= =?us-ascii?Q?w3nnokr4B6lNulMEg5LojJ4XmEk89V5SP+3OIT3?= =?us-ascii?Q?9srLVbDFgfC+846+PYu3NyIprOezVCUdR16Xfua?= =?us-ascii?Q?s3UMBnXugbC1A7zk0Jllr+ptRBpkzifrbLc2VnL?= =?us-ascii?Q?hQDhC6TjV6Uov9G2pWO0DLiJmw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: OKWUBMO2MZNOLPBRABSJYDCYMCSL7FJU X-Message-ID-Hash: OKWUBMO2MZNOLPBRABSJYDCYMCSL7FJU X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:119224] [Ruby master Bug#20748] Issue with defined? given method call with block in prism compiler List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "luke-gru (Luke Gruber) via ruby-core" Cc: "luke-gru (Luke Gruber)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20748 has been updated by luke-gru (Luke Gruber). I agree it's weird but it could cause an incompatibility I guess, `defined?()` is a weird one for sure. ---------------------------------------- Bug #20748: Issue with defined? given method call with block in prism compiler https://bugs.ruby-lang.org/issues/20748#change-109802 * Author: luke-gru (Luke Gruber) * Status: Open * Assignee: kddnewton (Kevin Newton) * ruby -v: 3.4.0dev * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- test.rb ```ruby puts defined?(undefined_method(){}) ``` ``` ./ruby --parser=parse.y -I../ruby/lib -I. -I.ext/x86_64-linux -I.ext/common -r./x86_64-linux-fake ../ruby/test.rb expression ``` ``` ./ruby --parser=prism -I../ruby/lib -I. -I.ext/x86_64-linux -I.ext/common -r./x86_64-linux-fake ../ruby/test.rb # empty line ``` -- 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/lists/ruby-core.ml.ruby-lang.org/