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

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

bug#12299: closed (24.1; no byte compiler warning for inline function ca


From: GNU bug Tracking System
Subject: bug#12299: closed (24.1; no byte compiler warning for inline function call with too few arguments)
Date: Mon, 06 Dec 2021 23:37:02 +0000

Your message dated Tue, 7 Dec 2021 00:36:36 +0100
with message-id 
<CADwFkmnY=jeHR+H3MQ2f4AVyZaqhnUYB=5SGiT_4ac=rsQe7Hg@mail.gmail.com>
and subject line Re: bug#12299: 24.1; no byte compiler warning for inline 
function call with too few arguments
has caused the debbugs.gnu.org bug report #12299,
regarding 24.1; no byte compiler warning for inline function call with too few 
arguments
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
12299: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12299
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 24.1; no byte compiler warning for inline function call with too few arguments Date: Tue, 28 Aug 2012 21:14:06 -0500
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.
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.


In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2012-06-10 on regnitz
Windowing system distributor `The X.Org Foundation', version 11.0.10706000



--- End Message ---
--- Begin Message --- Subject: Re: bug#12299: 24.1; no byte compiler warning for inline function call with too few arguments Date: Tue, 7 Dec 2021 00:36:36 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Mattias EngdegÄrd <mattiase@acm.org> writes:

> Thanks for testing it -- pushed to master, slightly simplified
> (somehow I completely missed the existence of `func-arity`)

It seems like this bug was fixed, so I'm closing it now.

commit 109ca1bd00b56ba66b123b505d8c2187fded0ef7
Author: Mattias EngdegÄrd <mattiase@acm.org>
Date:   Thu Jul 22 15:00:17 2021 +0200

    Warn about arity errors in inlining calls (bug#12299)


--- End Message ---

reply via email to

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