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

Typechecker diverges on a stupid program #7424

Closed
vicuna opened this issue Nov 29, 2016 · 1 comment
Closed

Typechecker diverges on a stupid program #7424

vicuna opened this issue Nov 29, 2016 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Nov 29, 2016

Original bug ID: 7424
Reporter: @stedolan
Assigned to: @garrigue
Status: resolved (set by @garrigue on 2016-12-10T02:40:28Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.04.0
Fixed in version: 4.05.0 +dev/beta1/beta2/beta3/rc1
Category: typing
Monitored by: @gasche

Bug description

The following strange program causes the typechecker to loop infinitely:

type 'a b = B of 'a b b [@@unboxed]
@vicuna
Copy link
Author

vicuna commented Dec 10, 2016

Comment author: @garrigue

Fixed by commit 2608a18.
This was not a divergence, just the "fuel" given to the function was much too large.
Could also try to find a better termination criterion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants