#1059468 defsubst with &rest leads to "Optimizer error: too much on the stack"

Package:
emacs-gtk
Source:
emacs-gtk
Description:
GNU Emacs editor (with GTK+ GUI support)
Submitter:
Joel Rosdahl
Date:
2023-12-26 12:09:10 UTC
Severity:
normal
#1059468#5
Date:
2023-12-26 12:07:46 UTC
From:
To:
As noted in Debian bug report #1058739, Emacs fails to byte-compile code like this:

    (defsubst bar (a &rest b) nil)
    (defun foo () (bar 1 2 3 4))

Result:

    $ emacs -Q --batch -f batch-byte-compile repro.el

    In toplevel form:
    repro.el:2:2: Error: Optimizer error: too much on the stack

This makes the lyskom-elisp-client package uninstallable.