unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Erik Dominikus <erik.dominikus71@gmail.com>
To: 43326@debbugs.gnu.org
Subject: bug#43326: [3.0.x] Regression: Compilation error involving strings
Date: Fri, 11 Sep 2020 15:31:24 +0700	[thread overview]
Message-ID: <CAOopUjnPRTVqrdxce4MJxsRzvgzeU0SmP4r-zQUYqW3Zy6o7mQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 564 bytes --]

Dear author(s) of the Guile 3.0.x compiler,

Background: I would like to report a problem that I found while trying
to write a simple web server with get-string-n, sxml simple, and web
server.

I have traced and reduced the problem into the minimal example below.

Some tested versions:
- affected: 3.0.2 and 3.0.4
- not affected: 2.0.13

How to reproduce:
- Download the attached compile-error.scm into your working directory.
- Run in Bash: GUILE_AUTO_COMPILE=0 guile -s compile-error.scm

Expected result: #t

Actual result: #f

Thank you.

Best regards,

Erik

[-- Attachment #2: compile-error.scm --]
[-- Type: text/x-scheme, Size: 361 bytes --]

;; GUILE_AUTO_COMPILE=0 guile -s compile-error.scm
(define code '(lambda ()
                (define a (string #\x #\y))
                (define b (substring/shared a 0 1))
                (string-ref b 0)))
(define compiled (compile code))
(define interped (eval code (interaction-environment)))
(write (equal? (compiled) (interped))) ;; #\nul vs #\x
(newline)

             reply	other threads:[~2020-09-11  8:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-11  8:31 Erik Dominikus [this message]
2020-09-11 12:37 ` bug#43326: [3.0.x] Regression: Compilation error involving strings tomas

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=CAOopUjnPRTVqrdxce4MJxsRzvgzeU0SmP4r-zQUYqW3Zy6o7mQ@mail.gmail.com \
    --to=erik.dominikus71@gmail.com \
    --cc=43326@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).