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

Short-paths compiler patch causes crash on undefined record label in recursive modules #5918

Closed
vicuna opened this issue Feb 12, 2013 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Feb 12, 2013

Original bug ID: 5918
Reporter: nuffer
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2015-12-11T18:20:59Z)
Resolution: unable to duplicate
Priority: normal
Severity: minor
Version: 4.00.1
Category: typing
Monitored by: @hcarty

Bug description

Using a compiler with Jacques Garrigue's short paths compiler patch the type checker crashes trying to generate "record field labels are undefined" errors for types inside recursive modules.

Steps to reproduce

Using ocaml-4.00.1 with Jacques Garrigue's short paths patch, compile:

module rec A : sig
type t
end = struct
type t =
{ a : unit;
b : unit;
}

let _ = { a = () }
end
;;

And receive something like:

Fatal error: exception Assert_failure("typing/typecore.ml", 257, 13)

@vicuna
Copy link
Author

vicuna commented Feb 12, 2013

Comment author: @garrigue

The short paths patch is now merged in trunk.
Please use trunk, as the patch will only be supported in 4.01.
And I couldn't reproduce your bug using trunk.

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