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

Forbid labelled or-branch expressions within defer #4271

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

Feoramund
Copy link
Contributor

This will prevent stack overflows caused by code such as this:

package breakdefer

main::proc(){
	w: {
		defer {
			(false) or_break w
		}
	}
}

@laytan laytan merged commit a52b1e0 into odin-lang:master Sep 19, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants