From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#24912: 25.1.50;
Byte compiler generates incorrect code when second &optional is used
Date: Wed, 09 Nov 2016 22:08:53 +0100
Message-ID:
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1478725944 29532 195.159.176.226 (9 Nov 2016 21:12:24 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 9 Nov 2016 21:12:24 +0000 (UTC)
To: 24912@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 09 22:12:19 2016
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
by blaine.gmane.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1c4aA1-0004cT-M9
for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Nov 2016 22:11:57 +0100
Original-Received: from localhost ([::1]:42469 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1c4aA4-0007u3-Ny
for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Nov 2016 16:12:00 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53611)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1c4a8B-0006b5-CF
for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:10:04 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1c4a8A-0008D7-AW
for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:10:03 -0500
Original-Received: from debbugs.gnu.org ([208.118.235.43]:35917)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1c4a8A-0008D3-6H
for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:10:02 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1c4a8A-0004hs-1E
for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:10:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 09 Nov 2016 21:10:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 24912
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.147872575018019
(code B ref -1); Wed, 09 Nov 2016 21:10:01 +0000
Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2016 21:09:10 +0000
Original-Received: from localhost ([127.0.0.1]:51315 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1c4a7J-0004gY-Sj
for submit@debbugs.gnu.org; Wed, 09 Nov 2016 16:09:10 -0500
Original-Received: from eggs.gnu.org ([208.118.235.92]:34247)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1c4a7I-0004gM-Qw
for submit@debbugs.gnu.org; Wed, 09 Nov 2016 16:09:09 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1c4a7C-0007tS-8j
for submit@debbugs.gnu.org; Wed, 09 Nov 2016 16:09:03 -0500
Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37925)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from )
id 1c4a7C-0007tC-5I
for submit@debbugs.gnu.org; Wed, 09 Nov 2016 16:09:02 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53430)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1c4a7A-0006X4-OX
for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:09:01 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1c4a79-0007rD-K9
for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:09:00 -0500
Original-Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:36653)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1c4a79-0007qw-Cs
for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:08:59 -0500
Original-Received: by mail-wm0-x236.google.com with SMTP id g23so4497341wme.1
for ; Wed, 09 Nov 2016 13:08:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=1HPDH3T4X9yTgqPRkK8+BbGWwJjSSwoKY+JaZObf1Sw=;
b=GG5Mdv8W5HZE67rp5XqB2PrEwUBHTYRCfcDBeAKR4U0c5jsKZaJARpFnuapvOoriBm
bqh0P2ceCTkKtFV0CYdygnS7I+AHl9lGSYdutCQnXKC8tyNAcNJ1AgcmCf1DwwvDjs7R
l45DnDjqoR6IQw1d9yt6GXS6+SLfqoHmtnOxPMM4TTOXowthngjHoDB3CHMGTU+KtbJJ
bvX5eJT2RtK+/A+CVIiqQ1qS1m8Rj/0RmyHcJbgwXTP7sCceZ1SwLdHkrNTnHf+osKyZ
ssdYq/UyHEZPthidSqy7xCWF+vjtQLpqUC0V3uV9N3CHBeQBx9khElJ9Qmsn04ca/AHY
UlBA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=1HPDH3T4X9yTgqPRkK8+BbGWwJjSSwoKY+JaZObf1Sw=;
b=U/6aIwJSvkz9rqiyeGiIG6GZ01erw9goV5zp2zXwwfX2Wh1gEBJls8SnEYqmwdK/Lq
XUAsQrT7gKR/K4zt9EXbwsSZhUG2FjxurvDdakcI4Qpzy/Qf8anDOpNkVQZNW11fugyI
uuC1+H5Zj3W4/mrWTv2OEsRrIVf7PgrYqoPQu/NHyM+VlcaWphYgd/tTosQbUWjfCucb
j0k9v12y9XPE8QzmjOdjuVqNvyX1s82ZcEIqwgHDPqvCMWQjJqX8yuNMa8fyBm36SIU4
6881Nk8xCAX/+ymOqylezAFP4YoLfXZc89J2bKBNJIeujEN/iM1BawYeggZRGraCl5SK
DJxw==
X-Gm-Message-State: ABUngvcMctFthCsYb8OQKQp7pLqYRNQBP5N2pD6JcyBLfPHqq8hn8GuQHUe8khcpcp1ogQ==
X-Received: by 10.194.113.234 with SMTP id jb10mr1362056wjb.19.1478725737892;
Wed, 09 Nov 2016 13:08:57 -0800 (PST)
Original-Received: from a.muc.corp.google.com ([2a00:79e0:15:4:d141:a38c:6374:fc8b])
by smtp.gmail.com with ESMTPSA id k2sm1678381wjv.11.2016.11.09.13.08.56
for
(version=TLS1_2 cipher=AES128-SHA bits=128/128);
Wed, 09 Nov 2016 13:08:57 -0800 (PST)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
the Swiss army knife of text editors"
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.org gmane.emacs.bugs:125529
Archived-At:
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.
In GNU Emacs 25.1.50.13 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2016-11-09 built on localhost
Repository revision: eb364fddec1431f459166cebb36f09f6b371dd71
Windowing system distributor 'The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04 LTS
Configured using:
'configure --with-modules --enable-checking
--enable-check-lisp-object-type 'CFLAGS=3D-ggdb3 -O0''
Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)
Memory information:
((conses 16 88985 12134)
(symbols 48 19888 0)
(miscs 40 343 148)
(strings 32 14767 5042)
(string-bytes 1 440399)
(vectors 16 12780)
(vector-slots 8 446092 5001)
(floats 8 166 21)
(intervals 56 209 0)
(buffers 976 24)
(heap 1024 40188 973))
--=20
Google Germany GmbH
Erika-Mann-Stra=C3=9Fe 33
80636 M=C3=BCnchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Gesch=C3=A4ftsf=C3=BChrer: Matthew Scott Sucherman, Paul Terence Manicle
Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind,
leiten Sie diese bitte nicht weiter, informieren Sie den Absender und l=C3=
=B6schen
Sie die E-Mail und alle Anh=C3=A4nge. Vielen Dank.
This e-mail is confidential. If you are not the right addressee please do =
not
forward it, please inform the sender, and please erase this e-mail including
any attachments. Thanks.