GNU bug report logs - #55355
TBD: inappropriate inlining, cmacro errors

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ivan Sokolov <ivan-p-sokolov@HIDDEN>; dated Tue, 10 May 2022 22:58:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 55355 <at> debbugs.gnu.org:


Received: (at 55355) by debbugs.gnu.org; 11 May 2022 12:11:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 11 08:11:01 2022
Received: from localhost ([127.0.0.1]:36360 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nolBA-0007sJ-5L
	for submit <at> debbugs.gnu.org; Wed, 11 May 2022 08:11:01 -0400
Received: from quimby.gnus.org ([95.216.78.240]:40494)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nolB8-0007s4-GN
 for 55355 <at> debbugs.gnu.org; Wed, 11 May 2022 08:10:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=ICVF4MpbtfW/hjyEKiXd6+nvs+XN/7pZgB/tc5riPXc=; b=bpv9KjfeArcOH4c4WqHHCQTW2+
 drB/mItso4hVGnImmja7fQE1yQzfiIpapqPq3xhjxrQHgJeeP0KSP2XDIKFahlnD1zaehNU0Zs7k9
 i458zjSklbUwlRNT/usAkpX5WIvI8yPDwTxaFj/9gwgEszODqPUN0XQt/UqrhyP3ToY4=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nolAz-0007yr-G0; Wed, 11 May 2022 14:10:47 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Ivan Sokolov <ivan-p-sokolov@HIDDEN>
Subject: Re: bug#55355: TBD: inappropriate inlining, cmacro errors
References: <87h75xnghe.fsf@HIDDEN>
X-Now-Playing: Joni Mitchell's _Night Ride Home_: "Ray's Dad's Cadillac"
Date: Wed, 11 May 2022 14:10:44 +0200
In-Reply-To: <87h75xnghe.fsf@HIDDEN> (Ivan Sokolov's message of "Wed, 11 May
 2022 01:57:17 +0300")
Message-ID: <87a6bob77f.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: (What does "TBD" mean here? To be decided?) Ivan Sokolov
 <ivan-p-sokolov@HIDDEN>
 writes: > Hi all! I encountered inlining errors, unfortunately I have no
 idea what > is causing them. > > Here is the code: > > (cl-defstruct (foo
 (:constructor foo<-list ((bar _ baz)))) > bar > baz) > > (foo [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 55355
Cc: 55355 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

(What does "TBD" mean here?  To be decided?)

Ivan Sokolov <ivan-p-sokolov@HIDDEN> writes:

> Hi all! I encountered inlining errors, unfortunately I have no idea what
> is causing them.
>
> Here is the code:
>
> (cl-defstruct (foo (:constructor foo<-list ((bar _ baz))))
>   bar
>   baz)
>
> (foo<-list '(1 2 3))                    ; does not work
>
> (funcall #'foo<-list '(1 2 3))          ; does not work
>
> (apply #'foo<-list '(1 2 3) nil)        ; does work
>
> Here is the backtrace:
>
> Debugger entered--Lisp error: (wrong-number-of-arguments foo<-list--cmacro 2)
>   signal(wrong-number-of-arguments (foo<-list--cmacro 2))

Perhaps Stefan has some comments; added to the CCs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#55355; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 May 2022 22:57:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 10 18:57:33 2022
Received: from localhost ([127.0.0.1]:35384 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1noYnN-0001DI-B0
	for submit <at> debbugs.gnu.org; Tue, 10 May 2022 18:57:33 -0400
Received: from lists.gnu.org ([209.51.188.17]:49892)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ivan-p-sokolov@HIDDEN>) id 1noYnL-0001DA-Iq
 for submit <at> debbugs.gnu.org; Tue, 10 May 2022 18:57:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49262)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ivan-p-sokolov@HIDDEN>)
 id 1noYnL-0001MG-97
 for bug-gnu-emacs@HIDDEN; Tue, 10 May 2022 18:57:31 -0400
Received: from forward103o.mail.yandex.net ([37.140.190.177]:53946)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ivan-p-sokolov@HIDDEN>)
 id 1noYnI-0008L2-SQ
 for bug-gnu-emacs@HIDDEN; Tue, 10 May 2022 18:57:30 -0400
Received: from myt6-ecec3fffc7db.qloud-c.yandex.net
 (myt6-ecec3fffc7db.qloud-c.yandex.net
 [IPv6:2a02:6b8:c12:4681:0:640:ecec:3fff])
 by forward103o.mail.yandex.net (Yandex) with ESMTP id 74F8310A956F
 for <bug-gnu-emacs@HIDDEN>; Wed, 11 May 2022 01:57:23 +0300 (MSK)
Received: from myt5-89cdf5c4a3a5.qloud-c.yandex.net
 (myt5-89cdf5c4a3a5.qloud-c.yandex.net [2a02:6b8:c12:289b:0:640:89cd:f5c4])
 by myt6-ecec3fffc7db.qloud-c.yandex.net (mxback/Yandex) with ESMTP id
 ELkrFUnl1G-vNg4eDav; Wed, 11 May 2022 01:57:23 +0300
X-Yandex-Fwd: 2
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail;
 t=1652223443; bh=2g4RueWSPB5kKcOwRcWQOYdo4ZWh6r6XK8Y4BArEECE=;
 h=Date:Subject:To:From:Message-ID;
 b=vZd0A8K3tpZH8kADnP5VLL15CSzZxcrnpqVUUfdcNFh0vvR/LSfwfebzaW/RUhf5Y
 7pxzWZoOZxFHkaeK6g08/w8E698MWI2peih2uhvo0pNYT5JbPmVD++5hQBIy5f/v6u
 dimjaSaU9RFs2tPzQ3ByayyrVzL9vxtA02XqPWzI=
Authentication-Results: myt6-ecec3fffc7db.qloud-c.yandex.net;
 dkim=pass header.i=@ya.ru
Received: by myt5-89cdf5c4a3a5.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA
 id 8iMj4qBnoE-vMN4cD3S; Wed, 11 May 2022 01:57:22 +0300
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
 (Client certificate not present)
From: Ivan Sokolov <ivan-p-sokolov@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: TBD: inappropriate inlining, cmacro errors
Date: Wed, 11 May 2022 01:57:17 +0300
Message-ID: <87h75xnghe.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=37.140.190.177; envelope-from=ivan-p-sokolov@HIDDEN;
 helo=forward103o.mail.yandex.net
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi all! I encountered inlining errors, unfortunately I have no idea what
is causing them.

Here is the code:

(cl-defstruct (foo (:constructor foo<-list ((bar _ baz))))
  bar
  baz)

(foo<-list '(1 2 3))                    ; does not work

(funcall #'foo<-list '(1 2 3))          ; does not work

(apply #'foo<-list '(1 2 3) nil)        ; does work

Here is the backtrace:

Debugger entered--Lisp error: (wrong-number-of-arguments foo<-list--cmacro 2)
  signal(wrong-number-of-arguments (foo<-list--cmacro 2))
  (if (= (length --cl-rest--) 3) (pop --cl-rest--) (signal 'wrong-number-of-arguments (list 'foo<-list--cmacro (length --cl-rest--))))
  (let* ((--cl-rest-- (if (= (length --cl-rest--) 1) (car --cl-rest--) (signal 'wrong-number-of-arguments (list 'foo<-list--cmacro (length --cl-rest--))))) (bar (if (= (length --cl-rest--) 3) (pop --cl-rest--) (signal 'wrong-number-of-arguments (list 'foo<-list--cmacro (length --cl-rest--))))) (_ (pop --cl-rest--)) (baz (car --cl-rest--))) (cl-block foo<-list--cmacro (cl--defsubst-expand '(bar _ baz) '(cl-block foo<-list (record 'foo bar baz)) nil nil nil bar _ baz)))
  foo<-list--cmacro((foo<-list '(1 2 3)) '(1 2 3))
  apply(foo<-list--cmacro (foo<-list '(1 2 3)) '(1 2 3))
  macroexp--compiler-macro(foo<-list--cmacro (foo<-list '(1 2 3)))
  #f(compiled-function (form func) #<bytecode -0x1ed89cfba17e95bb>)(((foo<-list '(1 2 3))) foo<-list)
  macroexp--expand-all((foo<-list '(1 2 3)))
  macroexp--all-forms((progn (foo<-list '(1 2 3))) 1)
  #f(compiled-function (form func) #<bytecode -0x1ed89cfba17e95bb>)(((progn (foo<-list '(1 2 3)))) progn)
  macroexp--expand-all((progn (foo<-list '(1 2 3))))
  macroexpand-all((progn (foo<-list '(1 2 3))))
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)

Affected versions:

GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)

GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-28




Acknowledgement sent to Ivan Sokolov <ivan-p-sokolov@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#55355; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 11 May 2022 12:15:02 UTC

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