Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler bug involving tag collision and labels function inlining #493

Open
pfdietz opened this issue May 23, 2024 · 1 comment
Open

Compiler bug involving tag collision and labels function inlining #493

pfdietz opened this issue May 23, 2024 · 1 comment

Comments

@pfdietz
Copy link

pfdietz commented May 23, 2024

(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
Copy link
Author

pfdietz commented May 23, 2024

The bug also occurs when FLET is used instead of LABELS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant