bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12299: 24.1; no byte compiler warning for inline function call with


From: Stefan Monnier
Subject: bug#12299: 24.1; no byte compiler warning for inline function call with too few arguments
Date: Fri, 16 Jul 2021 11:39:46 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen [2021-07-15 22:29:51] wrote:
> "Roland Winkler" <winkler@gnu.org> 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]