From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#67568: Emacs master: Bug in byte compiler when there's an unused parameter. Date: Fri, 1 Dec 2023 15:06:23 +0200 Message-ID: <1c2d9219-093c-0726-13ce-2c952f6e33ba@gutov.dev> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35704"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Stefan Monnier To: Alan Mackenzie , 67568@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 01 14:07:43 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r93F8-00096z-9q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Dec 2023 14:07:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r93Ed-0000tG-39; Fri, 01 Dec 2023 08:07:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r93EN-0000ou-H0 for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 08:06:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r93EL-0005O6-Ty for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 08:06:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r93EU-000050-76 for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 08:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Dec 2023 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67568 X-GNU-PR-Package: emacs Original-Received: via spool by 67568-submit@debbugs.gnu.org id=B67568.170143600332750 (code B ref 67568); Fri, 01 Dec 2023 13:07:02 +0000 Original-Received: (at 67568) by debbugs.gnu.org; 1 Dec 2023 13:06:43 +0000 Original-Received: from localhost ([127.0.0.1]:55272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r93EB-0008W9-At for submit@debbugs.gnu.org; Fri, 01 Dec 2023 08:06:43 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:39051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r93E9-0008Vv-Ei for 67568@debbugs.gnu.org; Fri, 01 Dec 2023 08:06:42 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 5B20D5C012C; Fri, 1 Dec 2023 08:06:27 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 01 Dec 2023 08:06:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1701435987; x=1701522387; bh=2YsiZgREyBUc86QuPVQmBVu0ZUJDmf/U3yp pJjDIdNg=; b=wPwj8bihkUWWADB1HpqS5sqsA/qUD/CR3hRNeTRfT+0a8FmHyrv dmzFLit7KgHUKH1TMbfBEOsKg4cktoCJSOnGLWNTOyM9cdVlViCcmbEDI2Bwlmnm kN5fc63Mr8vsEk5t3Ztd0IYZcT2RIVeay8M/xcmMPXcCrW4hhdjfuHcJPl/uN3SN Tx9fpeBKAvJ42zN3Ea+2TxVLFIvpNvQrbwpQ1SQHYELTOJeE38ggvw3PBAzwfWGk +RVDv0nzzfXov6RyXGAzEgmJMj3GjNn/PVXTJnfnGuRoo071jTFX/laN7JuikpXt a9XknbuCS5Ak/9YJV6sQRG1MoAqJ5Gu2MiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1701435987; x=1701522387; bh=2YsiZgREyBUc86QuPVQmBVu0ZUJDmf/U3yp pJjDIdNg=; b=ieCV5HHNWDUj/HLUCz4kGYlfBn3wsJDgDiyh2rYxDCtnjgf+CK6 3byHwhirVjN2OIt1g2vW0Bphujxu+YGcptxHfNkocpSqZ8rOUH5TTegA0C61mkEq k4g8HxGfHcvetazbp+KBOyjQnzH1aOutCBodB9y/vbWb0kB71CzIRco3zzlriX9W pSPl3Q+rRwlEhdWPqvpUPoCUq7qJ7ws9fvht6HA8gXZTYhXddHDjJqFOu2hkJdpT QiiQBgtph6WPXWDkOnBBSsCuC/vI361X+GPw/fmR+KYCyR+5VHrOjXlLGJMp8wtn 8nhdgPTQ9x29GAUr5QnpOuHaeOzWzQmMM1g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeiledggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 1 Dec 2023 08:06:25 -0500 (EST) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275319 Archived-At: On 01/12/2023 14:49, Alan Mackenzie wrote: > On a recent Emacs master: > > (i) emacs -Q > (ii) In*scratch* enter the following: > > (byte-compile (lambda (x) "doc" "foo")) > > . > (iii) Enter C-u C-x C-e to evaluate the form. The result looks like: > > #[257 "\300\207" [nil] 2 "doc > > (fn X)"] > > . This is incorrect. The only form in the constants vector is nil. > It should be "foo". > > (iv) Note that this only happens with the unused parameter x. Without > it, the form compiles correctly. Might be a bug in the interpreter too? (funcall (lambda (x) "doc" "foo") 2) ;; => nil