GNU bug report logs - #12299
24.1; no byte compiler warning for inline function call with too few arguments

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <winkler <at> gnu.org>

Date: Wed, 29 Aug 2012 02:16:02 UTC

Severity: normal

Tags: confirmed

Found in version 24.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 12299 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 12299 <at> debbugs.gnu.org, Roland Winkler <winkler <at> gnu.org>
Subject: Re: 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
Lars Ingebrigtsen [2021-07-15 22:29:51] wrote:
> "Roland Winkler" <winkler <at> 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





This bug report was last modified 3 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.