unbound variable check on R6RS is done incorrectly.

Create issue
Issue #180 resolved
Takashi Kato repo owner created an issue

This should not raise an error.

(library (helper)
    (export mark)
    (import (rnrs))
(define mark #'mark)
)
(library (bug)
    (export foo)
    (import (rnrs) (for (helper) expand))

(define-syntax foo
  (lambda (x)
    (display mark) (newline)
    (syntax-case x ()
      ((_) 'ok))))
)

Comments (2)

  1. Takashi Kato reporter

    This happens only -r6 option is passed and the reported script is written in one file. So it's more like program hidden syntax's problem.

  2. Log in to comment