Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
compiler fails with Stack overflow #6907
Original bug ID: 6907
On the following code, compiler fails with "Fatal error: exception Stack overflow"
class type ['e] t = object('s)
module type S = sig
Steps to reproduce
$ ocamlc min.ml
The bug is reproducible on at least 4.02.2 and 4.02.1. I didn't try on older versions.
The category is chosen based on an educated guess. I have no real witness, that it is from type checker, other then the error occurs on both ocamlc, ocaml, ocamlopt and even merlin.
Also, when minimizing an example, I've figured out, that the trigger is the return type of