mc icon indicating copy to clipboard operation
mc copied to clipboard

Compiler crash: Impossible return from classify_recursive

Open typeless opened this issue 3 years ago • 0 comments

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.

typeless avatar Apr 07 '22 10:04 typeless