all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: 24912-done@debbugs.gnu.org
Subject: bug#24912: 25.1.50; Byte compiler generates incorrect code when second &optional is used
Date: Tue, 22 Nov 2016 13:10:35 +0000	[thread overview]
Message-ID: <CAArVCkTUXqZgAr_SJUXyTFinyAhbRDY9f5Z1BC7NE2jHGeCi9A@mail.gmail.com> (raw)
In-Reply-To: <wvr437j08ioq.fsf@a.muc.corp.google.com>

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

Philipp Stephani <p.stephani2@gmail.com> schrieb am Mi., 9. Nov. 2016 um
22:11 Uhr:

>
> emacs -Q
>
> In *scratch*, evaluate:
>
> (funcall
>  (let ((lexical-binding t))
>    (byte-compile
>     (lambda (&optional a b)
>       (list a b))))
>  'a 'b)
>
> Result is (a b), as expected.  Now evaluate
>
> (funcall
>  (let ((lexical-binding t))
>    (byte-compile
>     (lambda (&optional a &optional b)
>       (list a b))))
>  'a 'b)
>
> Result is (b nil).
>
> Emacs should either generate correct code in both cases, or signal an
> error in the latter case.
>
> Fixed with commit  0d913da15c094bf596dd685acecf3438228c15cf.

[-- Attachment #2: Type: text/html, Size: 1482 bytes --]

      reply	other threads:[~2016-11-22 13:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-09 21:08 bug#24912: 25.1.50; Byte compiler generates incorrect code when second &optional is used Philipp Stephani
2016-11-22 13:10 ` Philipp Stephani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAArVCkTUXqZgAr_SJUXyTFinyAhbRDY9f5Z1BC7NE2jHGeCi9A@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=24912-done@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.