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

Comments

Projects
None yet
2 participants
@vicuna
Copy link

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

This comment has been minimized.

Copy link
Author

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.

@vicuna vicuna closed this Dec 10, 2016

@vicuna vicuna added the typing label Mar 14, 2019

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.