unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34757: Invalid bytecode from byte compiler
@ 2019-03-05  8:01 chuntaro
  2019-03-08 13:18 ` Eli Zaretskii
  2019-03-08 21:13 ` Pip Cet
  0 siblings, 2 replies; 12+ messages in thread
From: chuntaro @ 2019-03-05  8:01 UTC (permalink / raw)
  To: 34757

Invalid bytecode is output and error occurs when executed.

Byte compile the following code.

bug.el
----------------------------------------------------------------
;;; -*- lexical-binding: t; -*-

(let ((a 2))
  (print 1)
  (setq a 1))
----------------------------------------------------------------

$ emacs --batch -f batch-byte-compile bug.el

bug.elc
----------------------------------------------------------------
;ELC
...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(funcall 2 'print 1)
1
----------------------------------------------------------------

$ emacs --batch -l bug.elc
Invalid function: 2

It occurs in versions 25.2, 26.1 and HEAD.





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

end of thread, other threads:[~2019-07-27 21:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-05  8:01 bug#34757: Invalid bytecode from byte compiler chuntaro
2019-03-08 13:18 ` Eli Zaretskii
2019-03-08 13:50   ` Michael Heerdegen
2019-03-08 14:36     ` Eli Zaretskii
2019-03-08 21:13 ` Pip Cet
2019-03-15  8:08   ` Eli Zaretskii
2019-03-15 14:08     ` Stefan Monnier
2019-03-15 19:40       ` Pip Cet
2019-03-15 20:30         ` Stefan Monnier
2019-03-16 16:51           ` Pip Cet
2019-06-13 11:44             ` Pip Cet
2019-07-27 21:30   ` Stefan Monnier

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).