GNU bug report logs - #9109
24.0.50; Warning: assignment to free variable (unwind-protect)

Previous Next

Package: emacs;

Reported by: Roland Winkler <winkler <at> gnu.org>

Date: Sun, 17 Jul 2011 15:38:02 UTC

Severity: minor

Merged with 2681, 8774, 22288, 24128, 24592

Found in versions 23.0.91, 23.3.1, 24.0.50, 24.3.1, 25.0.50, 25.1

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9109 in the body.
You can then email your comments to 9109 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9109; Package emacs. (Sun, 17 Jul 2011 15:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Roland Winkler <winkler <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 17 Jul 2011 15:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Roland Winkler <winkler <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; Warning: assignment to free variable (unwind-protect)
Date: Sun, 17 Jul 2011 10:37:12 -0500
cat > foo.el <<EOF
(unwind-protect
    (let ((foo "foo"))
      (insert foo))
  (setq foo "bar"))
EOF

Compiling foo.el results in the warning:

  bar.el:2:12:Warning: assignment to free variable `foo'

The line number is wrong. The assignment to free variable `foo' happens
in the unwindform.

In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2011-07-11 on regnitz




Merged 2681 8774 9109 22288. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Fri, 05 Aug 2016 01:30:03 GMT) Full text and rfc822 format available.

Forcibly Merged 2681 8774 9109 22288 24449. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 16 Sep 2016 16:46:01 GMT) Full text and rfc822 format available.

Forcibly Merged 2681 8774 9109 22288 24128 24449. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 16 Sep 2016 16:48:01 GMT) Full text and rfc822 format available.

Disconnected #24449 from all other report(s). Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 16 Sep 2016 20:33:01 GMT) Full text and rfc822 format available.

Merged 2681 8774 9109 22288 24128 24592. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Wed, 05 Oct 2016 00:00:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 20 Feb 2022 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.