<div dir="ltr"><br><div style>I haven't been able to separate the code from my repo and make it still break, but I found what I imagine is an inlining bug when --enable-auto-force is enabled.</div><div style><br></div>
<div style>My repo: <a href="https://github.com/maitria/scheme-stuff.git">https://github.com/maitria/scheme-stuff.git</a><br></div><div style><br></div><div style>$ make</div><div style>$ gsi</div><div style>> (load "scheme-stuff.o1")</div>
<div style>> (for-each pp (delay (cons 1 (delay (cons 2 '())))))</div><div style>1 2></div><div style><br></div><div style>Change lib/iteration.scm:14 and replace end-position? with null? and repeat:</div><div style>
<br></div><div style><div>> (for-each pp (delay (cons 1 (delay (cons 2 '())))))</div><div>*** ERROR IN iteration#for-each -- (Argument 1) PAIR expected</div><div>(car '())</div><div>1> </div><div><br></div><div style>
The definition of end-position? is:</div><div style><br></div><div style>(define end-position? null?)</div><div style><br></div><div style>Adding an extraneous force call -- (loop (force (cdr position))) -- will prevent the problem.</div>
<div style><br></div><div style><br></div></div></div>