GNU bug report logs - #79789
simple loop fails to compile when last entry is a when clause that just does #t true

Previous Next

Package: guile;

Reported by: Terry Cadd <terry.cadd <at> gmail.com>

Date: Sat, 8 Nov 2025 15:19:02 UTC

Severity: normal

To reply to this bug, email your comments to 79789 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#79789; Package guile. (Sat, 08 Nov 2025 15:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Terry Cadd <terry.cadd <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sat, 08 Nov 2025 15:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Terry Cadd <terry.cadd <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: simple loop fails to compile when last entry is a when clause that
 just does #t true
Date: Fri, 7 Nov 2025 14:05:54 +0000
hi all,
my first guile bug report ,

bug causes guile-3.0.10 to fail to compile the function
it can load it using (load "xxx") but (compile-file "xxx") causes bug
error stating : cannot find 45
the number follows changes every so often
if comment out  line {when clause} its fine
sanity check with racket and stklos , they seem ok with it


;; GNU Guile 3.0.10
(define (find-elfs-goblins arr)
  (let loopy ((y 1))
    (when  (<= y 2)
      (let loopx ((x 1))
(when  (<= x 3)
  (display (list "x is " x " and y is " y))
  (newline)
  (loopx (+ x 1))))
      (when (<= y 2)  #t ) ;; << this line causes problem
      (loopy (+ y 1)))))




This bug report was last modified 3 days ago.

Previous Next


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