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

Segmentation fault combining value let rec and labelled partial applications #12727

Closed
lthls opened this issue Nov 10, 2023 · 0 comments
Closed

Comments

@lthls
Copy link
Contributor

lthls commented Nov 10, 2023

# let f ~x = let z = x ~y:0 in fun ~y ~u:() -> z + (x ~y);;
val f : x:(y:int -> int) -> y:int -> u:unit -> int = <fun>
# let rec x = f ~x ~u:();;
Segmentation fault

Rec_check considers that an application with missing labelled parameters is a simple closure allocation, not inspecting the function and arguments. But currently this is wrong, as the function is applied to all parameters until the first missing.

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