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

non-termination of ocamlc #3061

Closed
vicuna opened this issue Nov 30, 2001 · 2 comments
Closed

non-termination of ocamlc #3061

vicuna opened this issue Nov 30, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 30, 2001

Original bug ID: 674
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Chris Quinn
Version: 3.03a
OS: linux
Submission from: inktomi1-lan.server.ntl.com (62.252.160.4)

ocamlc -rectypes does not terminate!
Does not seem to like backward().

module L = List

type direction = Forward | Backward
type continuation = direction -> continuation
type 'a history = { mutable forward: 'a list;
mutable backward: 'a list }
constraint 'a = continuation
let history = {forward=[]; backward=[]}
let backward () =
let cont = L.hd history.backward in
history.forward <- cont Backward :: history.forward;
history.backward <- L.tl history.backward

@vicuna
Copy link
Author

vicuna commented Dec 4, 2001

Comment author: administrator

Corrected by Jacques (2001-12-04)

@vicuna
Copy link
Author

vicuna commented Dec 4, 2001

Comment author: administrator

This was a stupid bug in a special case of the type checker, forgetting that any
recursion on types (evenonly on arrows) may be infinite.

This is now corrected in CVS, ready for 3.04.

Jacques Garrigue

@vicuna vicuna closed this as completed Dec 4, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant