From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#46834: 28.0.50; byte-compiling the standard counter closure fails Date: Sun, 28 Feb 2021 15:04:06 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27285"; mail-complaints-to="usenet@ciao.gmane.io" To: 46834@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 28 19:08:11 2021 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 1lGQUE-00071s-WD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 19:08:11 +0100 Original-Received: from localhost ([::1]:56502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGQUE-0003DP-1t for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 13:08:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGQU7-0003D0-NA for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 13:08:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGQU6-0002Rn-CM for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 13:08:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGQU6-00024B-AD for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 13:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Feb 2021 18:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46834 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16145356327867 (code B ref -1); Sun, 28 Feb 2021 18:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Feb 2021 18:07:12 +0000 Original-Received: from localhost ([127.0.0.1]:47171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGQTI-00022p-7N for submit@debbugs.gnu.org; Sun, 28 Feb 2021 13:07:12 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGQTG-00022f-UA for submit@debbugs.gnu.org; Sun, 28 Feb 2021 13:07:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGQTG-0002mZ-M4 for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 13:07:10 -0500 Original-Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]:35492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGQTF-00021q-6l for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 13:07:10 -0500 Original-Received: by mail-oi1-x22f.google.com with SMTP id i21so13447465oii.2 for ; Sun, 28 Feb 2021 10:07:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=FvJDsfW8BvlKwlLDjs1zLu3ASUiQ1rJWIV0yI9bPpjY=; b=Z2ANHDObXgYA49DAycJ2DuNuL3RgTEaGixoRPobHjiK5BUncxyZtKPjvI8TTDMCXgt P+FaGTVG+V6k4aFtF3SAIJEZtudnPkTYdMi+Gw8nqi+eJwn2aPelx36LiXXLGaevU9eq Io06/IWZcYrF7J05QG9fAprMEnIXifHbXkCfHW+Psx7rWzUCPhvSCYHDf+pPpn+k0Ncn 227lo+OmVgKI5YasBheMOZ5ij7HSDde/ow5QjmazS3xZJyOdMBDfVUJzLSSUDLWjRXG/ lzgHxptPwaVe+uy6B8X+vIRvuZz1MZzaa0vyeHO0bzyCQ2DQjj01lxSmhM5Y1qwchZi7 +aIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FvJDsfW8BvlKwlLDjs1zLu3ASUiQ1rJWIV0yI9bPpjY=; b=gD6ZUoB/jJe7GByagqGYPm0tfF9HmqaqnOSOJ1IWygoSEk/WjlzIhN81XECCH37wuC pGmVESLtXcrMmBv1VUxHiBNXj9OPXJtoBr3V9JeUk2Kco2OuNItkkV/RO684Dee+TC/f HbG4UYrcqMtZ3CI5WG5coaBUG21MyMiUDJwessPSQqp/Yeyi/PagvIIB6VXMZiskp4wm LIrpwJBEfVG7hcN/IXQc1lX3wOPwtnHQchCj5d1wnDucjRSAy35AT3RhpTECZHgo1Nz3 3Y+8P63QrHk9xa3jgaZkjBS5pfCpoXoSFhyN4yH0cCFaUsn3nxcIbHR25fwetFvmuyQu WIpQ== X-Gm-Message-State: AOAM5326hhq+yx1UABSAPDMqYSmDcFUDzsvAYF9ArbLDI5WOXGfP0rzV 6Xf0zBJDjeRpFK9xTsyOhINeTlP6KSw+gzSY5X4CCF25y0E= X-Google-Smtp-Source: ABdhPJx4mj3V8whDBDAHkADWTbPKaR3TrIQAcj7uWbe1kcv8ey/xOzCymdEQW7pJ2goDKlBFQrCW4Cidr5JbiJqvA9I= X-Received: by 2002:aca:6141:: with SMTP id v62mr8272648oib.30.1614524682747; Sun, 28 Feb 2021 07:04:42 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::22f; envelope-from=pipcet@gmail.com; helo=mail-oi1-x22f.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:201021 Archived-At: (My apologies if this is well-known, documented, or plain stupid on my part, but I think it's an interesting gotcha. Feel free to close immediately in those cases.) Steps to reproduce from emacs -Q: Evaluate the following in a lexically-bound Emacs Lisp buffer: (byte-compile (let ((l 0)) (lambda () (cl-incf l)))) Expected result: A byte code object which will increment its return value by one every time it is called. Actual result: A byte code object which always returns 1.