From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <87ligyqwb5.fsf@gnu.org> <87a6mnfhhc.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33896"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 12299@debbugs.gnu.org, Roland Winkler To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 16 17:41:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4Pxe-0008de-AY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Jul 2021 17:41:10 +0200 Original-Received: from localhost ([::1]:55132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4Pxd-000325-Ag for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Jul 2021 11:41:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4PxW-00031s-Jk for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2021 11:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4PxW-0004bZ-Ck for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2021 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m4PxW-0002fy-Bo for bug-gnu-emacs@gnu.org; Fri, 16 Jul 2021 11:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jul 2021 15:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 12299-submit@debbugs.gnu.org id=B12299.162645001110216 (code B ref 12299); Fri, 16 Jul 2021 15:41:02 +0000 Original-Received: (at 12299) by debbugs.gnu.org; 16 Jul 2021 15:40:11 +0000 Original-Received: from localhost ([127.0.0.1]:52119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4Pwg-0002ei-PG for submit@debbugs.gnu.org; Fri, 16 Jul 2021 11:40:11 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4PwQ-0002dh-FQ for 12299@debbugs.gnu.org; Fri, 16 Jul 2021 11:40:09 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 87204100201; Fri, 16 Jul 2021 11:39:48 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 70C35100104; Fri, 16 Jul 2021 11:39:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1626449987; bh=ZK2xovQYolwhEufvZ6DGzY4XPZx1N6Cb1PrmfyvvC2A=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=iHBorY4KeNWXtMZ3vSO/vsNLrkKhgz2fMOzkLHXzWx0JnaEpcTI5x8QKaQ4XCmQ3K R/JGpesEPEvYxZ7A1s1W1ExdJe/vAQkA35odsL5axLsY28PKWrO5bhtvI/m89PhWGX 00XYHvnVBl5801Yc0v75lockC53e6k80HqHbiwvEwmUw+Xy/FaXW8G+Gt0l4ZwTpm6 /XTg0WRsX0vAeCN21G2B7n6HZtDzCiKzaTIQgT5RPmCFtLxFlPoHuy0JsPYH4GGSAC CYc7FGLzXKR2iylMLu2dbcDB5cJfTMB5DDCVFIjj2JDjLBmbRmag4o5/3THMw3I6iQ 6zl3yahch2HSA== Original-Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 42CC9120476; Fri, 16 Jul 2021 11:39:47 -0400 (EDT) In-Reply-To: <87a6mnfhhc.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 15 Jul 2021 22:29:51 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210105 Archived-At: Lars Ingebrigtsen [2021-07-15 22:29:51] wrote: > "Roland Winkler" 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