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

Fatal error: exception Ctype.Unify(_) #7766

Closed
vicuna opened this issue Apr 9, 2018 · 1 comment
Closed

Fatal error: exception Ctype.Unify(_) #7766

vicuna opened this issue Apr 9, 2018 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Apr 9, 2018

Original bug ID: 7766
Reporter: Vincent L
Assigned to: @Octachron
Status: resolved (set by @Octachron on 2018-04-09T15:10:29Z)
Resolution: duplicate
Priority: normal
Severity: crash
OS: OS X
OS Version: 10.11.6 15G2001
Version: 4.06.1
Fixed in version: 4.07.0+dev/beta2/rc1/rc2
Category: middle end (typedtree to clambda)
Duplicate of: #7695
Monitored by: @nojb @gasche

Bug description

When the attached file is compiled via ocamlc or ocamlopt, the compiler crashes with: “Fatal error: exception Ctype.Unify(_)” (Raised at file "typing/ctype.ml", line 2797, characters 6-45…).

OCaml 4.06.1 and 4.05.0 behave like this.

Earlier versions produce a sensible error message:

File "subst.ml", line 25, characters 4-6:
Error: This expression has type unit P.gty P.gfunc
but an expression was expected of type int P.gty P.gfunc
Type unit is not compatible with type int

Additional information

When the commented line is uncommented, the program is well-typed and correctly compiled.

File attachments

@vicuna
Copy link
Author

vicuna commented Apr 9, 2018

Comment author: @Octachron

Thanks for the report! This issue is duplicate of 7695, and it will be fixed with the release of OCaml 4.07 .

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