I agree that this fits perfectly into the "code smell" category, but my initial example was something more complex and I manged to reduce it to that snippet. By the way, I have just tested my code in SBCL and CLISP: both implementations throw an error, without hanging.<br>
<div><br><div class="gmail_quote">On Sun, Sep 19, 2010 at 10:14 PM, Ron Garret <span dir="ltr"><<a href="mailto:ron@flownet.com">ron@flownet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
My thoughts: don't write code like that.  (Reminds me of the old aphorism: "Doctor, it hurts when I poke myself in the eye.")<br>
<div><div></div><div class="h5"><br>
On Sep 19, 2010, at 12:08 PM, Valentin Baciu wrote:<br>
<br>
> Hello,<br>
><br>
> I ran into an infinite loop that keeps one out of two CPUs at 100% while compiling some piece of code reduced to this example:<br>
><br>
> (defun keep-compiler-busy ()<br>
>   (let ((test nil))<br>
>     (symbol-macrolet ((test test))<br>
>       (pprint test))))<br>
><br>
> I am not sure if this is a bug (maybe not according to CLHS) or if this could be a "missing" feature, but it bit me until I realized what happened. My guess is that the compiler keeps expanding the symbol 'test without exhausting the stack. Not a big problem from my point of view, but please let me know your thoughts on dealing with this kind of stuff.<br>

><br>
</div></div>> _______________________________________________<br>
> Openmcl-devel mailing list<br>
> <a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br>
> <a href="http://clozure.com/mailman/listinfo/openmcl-devel" target="_blank">http://clozure.com/mailman/listinfo/openmcl-devel</a><br>
<br>
</blockquote></div><br></div>