id summary reporter owner description type status priority milestone component version resolution keywords cc difficulty 15 let-syntax and letrec-syntax don't recognize local vars in compiled code Alex Shinn felix winkelmann "The following simple module: (module foo (foo) (import scheme) (define (foo) (let ((qux 3)) (let-syntax ((bar (syntax-rules () ((bar) qux)))) (bar))))) fails to compile with the following error: Warning: reference to possibly unbound identifier: qux10 Error: module unresolved: foo Call history: (begin35 (##sys#syntax-error-hook ""no rule matches form"" input17)) (##sys#syntax-error-hook ""no rule matches form"" input17) (##sys#cdr input17) (begin45 (bar)) (bar) (##sys#cdr input17) (##sys#eq? tail27 (quote ())) (rename26 (syntax qux)) <-- However the same code loads and evalutes fine in the interpreter. " defect closed critical compiler 4.0.1 fixed syntax lexical scope