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 crash: Impossible return from classify_recursive #206

Open
typeless opened this issue Apr 7, 2022 · 0 comments
Open

Compiler crash: Impossible return from classify_recursive #206

typeless opened this issue Apr 7, 2022 · 0 comments

Comments

@typeless
Copy link
Contributor

typeless commented Apr 7, 2022

A reproducer:

type foo = struct
	s : void
;;

const bar = {a : foo;}

const main = {
	var s : foo
	bar(s)
}

Output:

$  mbld -R a.myr
Impossible return from classify_recursive
CRASH: 6m a.myr

Edit: After some experiments and simplifications, the cause became a little bit obvious. I'll send a patch if the fix is not too hard.

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