ccl icon indicating copy to clipboard operation
ccl copied to clipboard

Compiler bug involving tag collision and labels function inlining

Open pfdietz opened this issue 9 months ago • 1 comments

(defun bug392 ()
  (let ((lam
         '(lambda ()
           (tagbody (labels ((%f () (go 5)))
                      (declare (inline %f))
                      (tagbody 5 (%f)))
            5)
           nil)))
    (funcall (compile nil lam))))

This function, when called, loops infinitely. I suspect the compiler is getting the two "5" tags confused.

"Version 1.12.2 (v1.12.2) LinuxX8664"

pfdietz avatar May 23 '24 04:05 pfdietz