From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Iurie Marian Newsgroups: gmane.emacs.bugs Subject: bug#73270: 31.0.50; comp.el comp--type-check-optim pass causes issues Date: Sun, 15 Sep 2024 10:27:48 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000eb80180622243bde" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22366"; mail-complaints-to="usenet@ciao.gmane.io" To: 73270@debbugs.gnu.org, acorallo@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 15 10:29:00 2024 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 1spkcu-0005Zk-4e for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Sep 2024 10:29:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spkcm-0001Xu-2z; Sun, 15 Sep 2024 04:28:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spkck-0001Xm-BN for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2024 04:28:50 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spkck-0001Tm-1p for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2024 04:28:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:Subject; bh=bBvXMpkSuZq03cJbXYejPwPMHo2EfvY6Y5XzABn0wYc=; b=stgDvlGlV5xC3x41ej47yMD4Dtora3i0f1PMGMH/oz+6UbFHeB8aLsl1BBFgjAbfuVwJdKWXqFpR6KqrNPIOJOBTMtVyBxm+ED6buDMDXHPzDojQ8qt9yLiCWTee3A2/8uw0TiBzIDyQ9W+/jnWgWbsDlMRJ1ljJfqq4Q5WvR60ojfwPrOzEQKh4BhqmXDkM7gcRidynHOGoPt9Bb0KxKWVbFuEBGVwE62KTXLtWNP24r6ym0Ike82SwS7ey5E/fFTZCcHrd8qUgyBOxjpfh3f7EUiC8FbHu2myrNHO+UmOJuWvQ1PDdE+ahIdt3z309YUIYhVbxgShgUbh8f7EuEQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spkcv-0004GD-LP for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2024 04:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Iurie Marian Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Sep 2024 08:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73270 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, acorallo@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172638890016312 (code B ref -1); Sun, 15 Sep 2024 08:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Sep 2024 08:28:20 +0000 Original-Received: from localhost ([127.0.0.1]:48323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spkcF-0004F1-Fy for submit@debbugs.gnu.org; Sun, 15 Sep 2024 04:28:20 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spkcC-0004Er-Sy for submit@debbugs.gnu.org; Sun, 15 Sep 2024 04:28:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spkc0-0001WQ-UX for bug-gnu-emacs@gnu.org; Sun, 15 Sep 2024 04:28:05 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spkby-0001SX-Jq; Sun, 15 Sep 2024 04:28:04 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-42cbface8d6so29800175e9.3; Sun, 15 Sep 2024 01:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726388880; x=1726993680; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=bBvXMpkSuZq03cJbXYejPwPMHo2EfvY6Y5XzABn0wYc=; b=HrcGlApg17ybqDIpmkivTCU/3LJfMU53ZWn5HUwrJGylWMCdyiMWmNm4ibTp2VqGKV ++rH8J0X2de2p9tWG27FA7Dyn8OuKkCnsYu4yqXfS2+ABquyJcsBmxXancF6Jn7h3JZu GXFJJM06S9jInigto8OHi/3efXGG//WX6PcJHKnujNniQkR21Y5ojnGMZ7usDGYYnLI8 Fazl0aODDfPGEYRB/bUyk5beUmRXwuOvnPexv71rZT/cD0/vUuGX+aLWw2TYr4QH1juj jDF6cX7qM6F0pdKRDOf09syGNqA6hXT9NHvSf9e8pamvnGL04SeW4Qp7dfVv6Yjsu9A4 TtOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726388880; x=1726993680; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bBvXMpkSuZq03cJbXYejPwPMHo2EfvY6Y5XzABn0wYc=; b=HzOkUjjIBLzvQ0zttAcaTE/RUJibyG6jzRIg3s3rgK9rUnP4HW/3vLfOjcpjwhRezp yMu0+6dimDEzt2fTUbrmCU/JQqqtMVnZUmt9brAME7iOxzMPGD0YoSJnTpXWL0iRNsj0 NABbX2dd9oLn+nnr84Juf63K+Ah72tdE9AVHazIzy6z+l/GKvq625Bg9dYH9pUURIGEC PwusS+gguNHYU3nuSRiCQzAsxC2WCvg2cDKq9x7X0i8IHNkHWGlsgJcWR7YPzD/MRhuu KN/WYLdqBQbI5KX17+vW015Zhd+8ufU/bj7CqqsfjWMh56AQKduW6i+/IogEpC450BGl /L4A== X-Forwarded-Encrypted: i=1; AJvYcCUuDkNyP/8pbo15y/nzkgd2I1rt3nw6YZQOS3bXGsfCbqqXbvnKEUtQZdvaJEzZ3CmnqQ1FI1DT3g==@gnu.org X-Gm-Message-State: AOJu0YyeSvznT2InAKeiPBLzKlaRMS649aYabiwgVgWsCK1TjlUt9vb6 YaAFqeWSc5lUv0FtATiwtrS3ipvNPqhbsbjyozxW+ax1iC7qYUceXHl2Rxwa1BBJd2EQu4ZTeu0 e8Nl+niRvsmKQ9FYwoTeoVDHq86cXQyeG X-Google-Smtp-Source: AGHT+IH+Gm2nsXM5lcZ9hvfJ3HJVLIwU/gICZliFZEZvkSKlAGYP1tzJSbHxj6OdMdqoAEw586zea35E35zeJifYPZM= X-Received: by 2002:a05:600c:3ba6:b0:42c:bd4d:e8ab with SMTP id 5b1f17b1804b1-42d9072056bmr81001785e9.10.1726388879717; Sun, 15 Sep 2024 01:27:59 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=marian.iurie@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291832 Archived-At: --000000000000eb80180622243bde Content-Type: text/plain; charset="UTF-8" Dear Emacs maintainers, I encountered an issue with latest Emacs' master branch. I am using a package `pcre2el' and I noticed a wrong behavior after updating Emacs. I tracked the change which causes the issue, and it seems it's the below commit: #+begin_comment a1775552cef5a8bc0ba13e802ecf343423a53364 Author: Andrea Corallo AuthorDate: Tue May 23 11:18:07 2023 +0200 Commit: Andrea Corallo CommitDate: Thu Jul 11 16:26:49 2024 +0200 #+end_comment probably the newly introduced `comp--type-check-optim' is causing the issue. Issue description: * `pcre2el''s rxt-adt->strings execution expectation #+begin_comment ELISP> (rxt-adt->strings (rxt-parse-pcre (rxt--add-flags "t([es]{2})" nil))) ("tss" "tse" "tes" "tee") #+end_comment * The error #+begin_comment ELISP> (rxt-adt->strings (rxt-parse-pcre (rxt--add-flags "t([es]{4})" nil))) *** Eval error *** Wrong type argument: listp, #s(rxt-repeat 4 4 #s(rxt-char-set-union (115 101) nil nil nil) t) #+end_comment That's how the above function [[ https://github.com/joddie/pcre2el/blob/b4d846d80dddb313042131cf2b8fbf647567e000/pcre2el.el#L2984C1-L3004C46][rxt-adt->strings]] looks like: #+begin_src emacs-lisp (defun rxt-adt->strings (re) (cl-typecase re (rxt-primitive (list "")) (rxt-string (list (rxt-string-chars re))) (rxt-seq (rxt-seq-elts->strings (rxt-seq-elts re))) (rxt-choice (rxt-choice-elts->strings (rxt-choice-elts re))) (rxt-submatch (rxt-adt->strings (rxt-submatch-body re))) (rxt-submatch-numbered (rxt-adt->strings (rxt-submatch-numbered-body re))) (rxt-repeat (rxt-repeat->strings re)) (rxt-char-set-union (rxt-char-set->strings re)) (t (error "Can't generate productions of %s" (rxt-syntax-tree-readable re))))) #+end_src The issue comes from #+begin_comment (cl-typecase re #+end_comment instead of matching below: #+begin_comment (rxt-submatch (rxt-adt->strings (rxt-submatch-body re))) #+end_comment it wrongly matches: #+begin_comment (rxt-seq (rxt-seq-elts->strings (rxt-seq-elts re))) #+end_comment and throws the error #+begin_comment ELISP> (rxt-adt->strings (rxt-parse-pcre (rxt--add-flags "t([es]{4})" nil))) *** Eval error *** Wrong type argument: listp, #s(rxt-repeat 4 4 #s(rxt-char-set-union (115 101) nil nil nil) t) #+end_comment To quickly check this I've added some traces: #+begin_src emacs-lisp (defun rxt-adt->strings (re) (message "type-of re: %S, re = %S" (type-of re) re) (cl-typecase re (rxt-primitive (progn (message "match: rxt-primitive") (list ""))) (rxt-string (progn (message "match: rxt-string") (list (rxt-string-chars re)))) (rxt-seq (progn (message "match: rxt-seq") (rxt-seq-elts->strings (rxt-seq-elts re)))) (rxt-choice (progn (message "match: rxt-choice") (rxt-choice-elts->strings (rxt-choice-elts re)))) (rxt-submatch (progn (message "match: rxt-submatch") (rxt-adt->strings (rxt-submatch-body re)))) (rxt-submatch-numbered (progn (message "match: rxt-submatch-numbered") (rxt-adt->strings (rxt-submatch-numbered-body re)))) (rxt-repeat (progn (message "match: rxt-repeat") (rxt-repeat->strings re))) (rxt-char-set-union (progn (message "match: rxt-char-set-union") (rxt-char-set->strings re))) (t (error "Can't generate productions of %s" (rxt-syntax-tree-readable re))))) #+end_src which produces below messages: #+begin_comment type-of re: rxt-seq, re = #s(rxt-seq (#s(rxt-string "t" nil) #s(rxt-submatch #s(rxt-repeat 4 4 #s(rxt-char-set-union (115 101) nil nil nil) t)))) match: rxt-seq type-of re: rxt-string, re = #s(rxt-string "t" nil) match: rxt-string type-of re: rxt-submatch, re = #s(rxt-submatch #s(rxt-repeat 4 4 #s(rxt-char-set-union (115 101) nil nil nil) t)) match: rxt-seq #+end_comment By commenting line (`comp--type-check-optim') in `comp-passes' (see below), it fixes locally the issue, which makes me think that this is the culprit. #+begin_src emacs-lisp (defconst comp-passes '(comp--spill-lap comp--limplify comp--fwprop comp--call-optim comp--ipa-pure comp--add-cstrs comp--fwprop ;; comp--type-check-optim comp--tco comp--fwprop comp--remove-type-hints comp--sanitizer comp--compute-function-types comp--final) "Passes to be executed in order.") #+end_src Kind Regards, Iurie In GNU Emacs 31.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-09-13 built on rrouwprlc0222 Repository revision: 7376623a244a91d1de5245645b4b3e8c9469d422 Repository branch: master System Description: Ubuntu 24.04.1 LTS Configured using: 'configure 'CFLAGS= -O3 -fallow-store-data-races -fno-semantic-interposition -flto -fuse-ld=gold' LD=/usr/bin/ld.gold --prefix=/tools/emacs/build --sysconfdir=/etc --libexecdir=/tools/emacs/build/usr/lib --localstatedir=/tools/emacs/build/var --with-modules --without-gconf --without-gsettings --enable-link-time-optimization --with-x-toolkit=yes --without-xaw3d --without-m17n-flt --with-cairo --with-xwidgets --without-compress-install --with-native-compilation=aot --with-mailutils --with-xft --with-rsvg --with-pgtk' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB Important settings: value of $LC_ALL: C value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8 --000000000000eb80180622243bde Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Emacs maintainers,

I encountered an issue with= latest Emacs' master branch. I am using a package `pcre2el'
and= I noticed a wrong behavior after updating Emacs. I tracked the change whic= h causes the
issue, and it seems it's the below commit:
#+begin_c= omment
a1775552cef5a8bc0ba13e802ecf343423a53364
Author: =C2=A0 =C2=A0= Andrea Corallo <akrl@sdf.org>AuthorDate: Tue May 23 11:18:07 2023 +0200
Commit: =C2=A0 =C2=A0 Andrea= Corallo <acorallo@gnu.org>CommitDate: Thu Jul 11 16:26:49 2024 +0200
#+end_comment
probably t= he newly introduced `comp--type-check-optim' is causing the issue.
<= br>Issue description:
* `pcre2el''s rxt-adt->strings executio= n expectation
#+begin_comment
ELISP> (rxt-adt->strings (rxt-pa= rse-pcre (rxt--add-flags "t([es]{2})" nil)))
("tss" = "tse" "tes" "tee")
#+end_comment

* = The error
#+begin_comment
ELISP> (rxt-adt->strings (rxt-parse-p= cre (rxt--add-flags "t([es]{4})" nil)))
*** Eval error *** =C2= =A0Wrong type argument: listp, #s(rxt-repeat 4 4 #s(rxt-char-set-union (115= 101) nil nil nil) t)
#+end_comment

That's how the above func= tion [[https://githu= b.com/joddie/pcre2el/blob/b4d846d80dddb313042131cf2b8fbf647567e000/pcre2el.= el#L2984C1-L3004C46][rxt-adt->strings]] looks like:

#+begin_s= rc emacs-lisp
(defun rxt-adt->strings (re)
=C2=A0 (cl-typecase re<= br>=C2=A0 =C2=A0 (rxt-primitive
=C2=A0 =C2=A0 =C2=A0(list ""))=
=C2=A0 =C2=A0 (rxt-string
=C2=A0 =C2=A0 =C2=A0(list (rxt-string-char= s re)))
=C2=A0 =C2=A0 (rxt-seq
=C2=A0 =C2=A0 =C2=A0(rxt-seq-elts->= strings (rxt-seq-elts re)))
=C2=A0 =C2=A0 (rxt-choice
=C2=A0 =C2=A0 = =C2=A0(rxt-choice-elts->strings (rxt-choice-elts re)))
=C2=A0 =C2=A0 = (rxt-submatch
=C2=A0 =C2=A0 =C2=A0(rxt-adt->strings (rxt-submatch-bod= y re)))
=C2=A0 =C2=A0 (rxt-submatch-numbered
=C2=A0 =C2=A0 =C2=A0(rxt= -adt->strings (rxt-submatch-numbered-body re)))
=C2=A0 =C2=A0 (rxt-re= peat
=C2=A0 =C2=A0 =C2=A0(rxt-repeat->strings re))
=C2=A0 =C2=A0 (= rxt-char-set-union
=C2=A0 =C2=A0 =C2=A0(rxt-char-set->strings re))=C2=A0 =C2=A0 (t
=C2=A0 =C2=A0 =C2=A0(error "Can't generate pr= oductions of %s"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (rxt-syn= tax-tree-readable re)))))
#+end_src

The issue comes from
#+be= gin_comment
=C2=A0 (cl-typecase re
#+end_comment

instead of ma= tching below:
#+begin_comment
=C2=A0 =C2=A0 (rxt-submatch
=C2=A0 = =C2=A0 =C2=A0(rxt-adt->strings (rxt-submatch-body re)))
#+end_comment=

it wrongly matches:
#+begin_comment
=C2=A0 =C2=A0 (rxt-seq=C2=A0 =C2=A0 =C2=A0(rxt-seq-elts->strings (rxt-seq-elts re)))
#+end= _comment

and throws the error
#+begin_comment
ELISP> (rxt-a= dt->strings (rxt-parse-pcre (rxt--add-flags "t([es]{4})" nil))= )
*** Eval error *** =C2=A0Wrong type argument: listp, #s(rxt-repeat 4 4= #s(rxt-char-set-union (115 101) nil nil nil) t)
#+end_comment

To= quickly check this I've added some traces:
#+begin_src emacs-lisp(defun rxt-adt->strings (re)
=C2=A0 (message "type-of re: %S, = re =3D %S" (type-of re) re)
=C2=A0 (cl-typecase re
=C2=A0 =C2=A0= (rxt-primitive
=C2=A0 =C2=A0 =C2=A0(progn (message "match: rxt-pri= mitive")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (list "&quo= t;)))
=C2=A0 =C2=A0 (rxt-string
=C2=A0 =C2=A0 =C2=A0(progn (message &= quot;match: rxt-string")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = (list (rxt-string-chars re))))
=C2=A0 =C2=A0 (rxt-seq
=C2=A0 =C2=A0 = =C2=A0(progn (message "match: rxt-seq")
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (rxt-seq-elts->strings (rxt-seq-elts re))))
=C2= =A0 =C2=A0 (rxt-choice
=C2=A0 =C2=A0 =C2=A0(progn (message "match: = rxt-choice")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (rxt-choice-= elts->strings (rxt-choice-elts re))))
=C2=A0 =C2=A0 (rxt-submatch
= =C2=A0 =C2=A0 =C2=A0(progn (message "match: rxt-submatch")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (rxt-adt->strings (rxt-submatch-b= ody re))))
=C2=A0 =C2=A0 (rxt-submatch-numbered
=C2=A0 =C2=A0 =C2=A0(= progn (message "match: rxt-submatch-numbered")
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 (rxt-adt->strings (rxt-submatch-numbered-bod= y re))))
=C2=A0 =C2=A0 (rxt-repeat
=C2=A0 =C2=A0 =C2=A0(progn (messag= e "match: rxt-repeat")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (rxt-repeat->strings re)))
=C2=A0 =C2=A0 (rxt-char-set-union
= =C2=A0 =C2=A0 =C2=A0(progn (message "match: rxt-char-set-union")<= br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (rxt-char-set->strings re))= )
=C2=A0 =C2=A0 (t
=C2=A0 =C2=A0 =C2=A0(error "Can't generat= e productions of %s"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (rxt= -syntax-tree-readable re)))))
#+end_src

which produces below mess= ages:

#+begin_comment
type-of re: rxt-seq, re =3D #s(rxt-seq (#s(= rxt-string "t" nil) #s(rxt-submatch #s(rxt-repeat 4 4 #s(rxt-char= -set-union (115 101) nil nil nil) t))))
match: rxt-seq

type-of re= : rxt-string, re =3D #s(rxt-string "t" nil)
match: rxt-string<= br>
type-of re: rxt-submatch, re =3D #s(rxt-submatch #s(rxt-repeat 4 4 #= s(rxt-char-set-union (115 101) nil nil nil) t))
match: rxt-seq
#+end_= comment

By commenting line (`comp--type-check-optim') in `comp-p= asses' (see below), it fixes locally the issue, which makes me think th= at this is the culprit.

#+begin_src emacs-lisp

(defconst com= p-passes '(comp--spill-lap
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 comp--limplify
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 comp-= -fwprop
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 comp--call-optim
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 comp--ipa-pure
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 comp--add-cstrs
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 comp--fwprop
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; comp--type-chec= k-optim
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 comp--tco
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 comp--fwprop
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 comp-= -remove-type-hints
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 comp--sanitizer
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 comp--compute-f= unction-types
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 comp--final)
=C2=A0 "Passes to be execu= ted in order.")

#+end_src

Kind Regards,
Iurie

=

In GNU Emacs 31.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version=C2=A03.24.41, cairo version 1.18.0) of 2024-09-13 built on rrouwprlc0222<= br>Repository revision: 7376623a244a91d1de5245645b4b3e8c9469d422
Reposit= ory branch: master
System Description: Ubuntu 24.04.1 LTS

Configu= red using:
=C2=A0'configure 'CFLAGS=3D -O3 -fallow-store-data-ra= ces
=C2=A0-fno-semantic-interposition -flto -fuse-ld=3Dgold' LD=3D/u= sr/bin/ld.gold
=C2=A0--prefix=3D/tools/emacs/build --sysconfdir=3D/etc=C2=A0--libexecdir=3D/tools/emacs/build/usr/lib
=C2=A0--localstatedir= =3D/tools/emacs/build/var --with-modules
=C2=A0--without-gconf --without= -gsettings --enable-link-time-optimization
=C2=A0--with-x-toolkit=3Dyes = --without-xaw3d --without-m17n-flt --with-cairo
=C2=A0--with-xwidgets --= without-compress-install
=C2=A0--with-native-compilation=3Daot --with-ma= ilutils --with-xft --with-rsvg
=C2=A0--with-pgtk'

Configured = features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF L= IBSELINUX
LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RS= VG SECCOMP
SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WE= BP XIM
XWIDGETS GTK3 ZLIB

Important settings:
=C2=A0 value of = $LC_ALL: C
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIF= IERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8

--000000000000eb80180622243bde--