Subject: Re: bug#12299: 24.1; no byte compiler warning for inline function call with too few arguments

From: Stefan Monnier <[email-masked]>
Date: Fri, 16 Jul 2021 11:39:46 -0400

Lars Ingebrigtsen [2021-07-15 22:29:51] wrote:
> "Roland Winkler" <[email-masked]> writes:
>> cat > foo.el << EOF
>> (defsubst foo (a b))
>> (foo t)
>> EOF
>>
>> Byte-compile the above file. The Emacs 24.1 byte compiler does not
>> complain that the inline function foo is called with too few arguments.
> This is still the case in Emacs 28, which is pretty surprising.  (Both
> when doing dynamic and lexical compilation.)
> I've added Stefan to the CCs -- perhaps he has some comments here.

No particular comments, no.  IIRC this part of the byte compiler is just
not making efforts to detect such errors, indeed.
It's probably not hard to fix.

        Stefan