Subject: master: Wrong error message with M-: (funcall).
From: Alan Mackenzie <[email-masked]>
To: [email-masked]
Date: Thu, 13 Jan 2022 07:39:05 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello, Emacs.

In the master branch, with emacs -Q, do

    M-: (funcall) RET

..  The error message one sees is

    (void-function nil)

..  This is wrong.  There is no function, nil or otherwise, supplied to
funcall.  The error message ought to be "Too few arguments", or
something like that.

The cause of the bug lies in Ffuncall in .../src/eval.c.  There, the
code uses args[0] without first checking that nargs > 0.

-- 
Alan Mackenzie (Nuremberg, Germany).