unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Matt Wette <matt.wette@gmail.com>
To: 54478@debbugs.gnu.org
Subject: bug#54478: unwanted source references
Date: Sun, 27 Mar 2022 07:27:30 -0700	[thread overview]
Message-ID: <df74e564-19ba-3dcf-05c4-b41566368766@gmail.com> (raw)
In-Reply-To: <4b3857bc-a068-a1c8-4583-73c9d3c909bc@gmail.com>

I think the error is in use of "src" arg to make-seq in the following loop,
in ice-9/psyntax.scm, starting at line 1633:

                 (let lp ((var-ids var-ids) (vars vars) (vals vals)
                          (tail (expand-tail-expr)))
                   (cond
                    ((null? var-ids) tail)
                    ((not (car var-ids))
                     (lp (cdr var-ids) (cdr vars) (cdr vals)
                         (make-seq src ((car vals)) tail)))
                    (else
                     (let ((var-ids (map (lambda (id)
                                           (if id (syntax->datum id) '_))
                                         (reverse var-ids)))
                           (vars (map (lambda (var) (or var (gen-label)))
                                      (reverse vars)))
                           (vals (map (lambda (expand-expr id)
                                        (if id
                                            (expand-expr)
                                            (make-seq src
                                                      (expand-expr)
                                                      (build-void src))))
                                      (reverse vals) (reverse var-ids))))
                       (build-letrec src #t var-ids vars vals tail)))))






      reply	other threads:[~2022-03-27 14:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-20 15:11 bug#54478: unwanted source references showing up w/ -O0 (with patch) Matt Wette
2022-03-27 14:27 ` Matt Wette [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=df74e564-19ba-3dcf-05c4-b41566368766@gmail.com \
    --to=matt.wette@gmail.com \
    --cc=54478@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).