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

Breaking from a loop in defer causes a compiler seg fault #3960

Closed
thetarnav opened this issue Jul 22, 2024 · 0 comments
Closed

Breaking from a loop in defer causes a compiler seg fault #3960

thetarnav opened this issue Jul 22, 2024 · 0 comments
Labels
frontend replicated We were able to replicate the bug.

Comments

@thetarnav
Copy link
Contributor

I was trying to hack a do while loop with defer, and encountered a compiler bug:

label: for {
	defer break label
}

running odin build on the above code results in a seg fault.

odin check reports nothing

odin report:

	Odin:    dev-2024-07:ccf8b2764
	OS:      Ubuntu 22.04.4 LTS, Linux 6.5.0-44-generic
	CPU:     Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
	RAM:     7631 MiB
	Backend: LLVM 17.0.6
@Kelimion Kelimion added frontend replicated We were able to replicate the bug. labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend replicated We were able to replicate the bug.
Projects
None yet
Development

No branches or pull requests

2 participants