GNU bug report logs -
#12299
24.1; no byte compiler warning for inline function call with too few arguments
Previous Next
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 #8 received at 12299 <at> debbugs.gnu.org (full text, mbox):
"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.
I can confirm that this bug is still present in Emacs 27, but it's weird
that this hasn't come up more often. I mean, defsubsts are commonly
used, and not having byte compilation warnings about the wrong number of
arguments is something you'd expect to come up more often.
> Emacs 23.1 complains
>
> foo.el:2:1:Warning: attempt to open-code `anonymous lambda' with
> too few arguments
>
> till it aborts with
>
> foo.el:2:1:Error: Variable binding depth exceeds max-specpdl-size
>
> which I do not find very appropriate either.
Nope.
I tried briefly to follow the logic in the stuff that'd give a "attempt
to open-code", but it doesn't seem to be triggered at all in this case.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
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.