This bug still exists in XEmacs 21.0-b53.
-Barry
------- Start of forwarded message -------
Subject: Bug in byte code optimizer
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: mast(a)lysator.liu.se (Martin Stjernholm)
Date: 01 Sep 1998 03:39:31 +0200
Message-ID: <7m3eacr4q4.fsf(a)starbug.rydnet.lysator.liu.se>
Newsgroups: gnu.emacs.bug
There seems to be a bug in the byte code optimizer. The following is a
minimal reproducible case under both Emacs 20.2 and XEmacs 20.4.
Create a file foo.el with this content (note that char-before is a
built-in function):
(if whatever
(condition-case nil
(char-before))
(defsubst char-before () nil))
Start (X)Emacs with -q -no-site-file. Byte compile foo.el with M-x
byte-compile-file. I get this in the compilation log:
Compiling file /home/mast/elisp/cc-mode/foo.el at Tue Sep 1 03:33:36 1998
** reference to free variable whatever
!! Wrong type argument ((listp #<subr char-before>))
No byte code file is produced. I get no error when I set byte-optimize
to nil.
/Martin
------- End of forwarded message -------