unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8033: 24.0.50; Number type error in byte compiler
@ 2011-02-14  5:43 Chong Yidong
  2011-02-14  6:58 ` bug#8033: Not the byte compiler; problem lies deeper Michael Welsh Duggan
  0 siblings, 1 reply; 8+ messages in thread
From: Chong Yidong @ 2011-02-14  5:43 UTC (permalink / raw)
  To: 8033

I originally reported this as a Gnus bug, but turns out it's a bug in
the byte compiler.  To reproduce, create a file with the following
contents:

  (defvar foo 1.0)

  (defun foo ()
    (interactive)
    (if (and (equal foo 1.0)
             (equal foo 1))
        (error "Object is `equal' to both a float and an integer")))

Then, in the shell:

~ $ emacs -Q -batch -f batch-byte-compile foo.el
~ $ emacs -Q -batch -l foo.elc -f foo
Object is `equal' to both a float and an integer

The error does not show up in Emacs 23.x, so it must have been
introduced relatively recently on the trunk.



In GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2011-02-14 on furball
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
configured using `configure  'CC=gcc' 'CFLAGS=-g''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-02-14 22:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-14  5:43 bug#8033: 24.0.50; Number type error in byte compiler Chong Yidong
2011-02-14  6:58 ` bug#8033: Not the byte compiler; problem lies deeper Michael Welsh Duggan
2011-02-14 11:22   ` Michael Welsh Duggan
2011-02-14 20:25     ` Michael Welsh Duggan
2011-02-14 21:52       ` Chong Yidong
2011-02-14 22:08         ` Michael Welsh Duggan
2011-02-14 22:25           ` Chong Yidong
2011-02-14 22:10         ` Michael Welsh Duggan

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).