You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1764 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
:; ocamlc -version
3.07+beta 1
:; cat test.ml
let inclus l1 l2 =
let rec mem x = function
[] -> false
| a::l -> (l=x) || (mem x a) (* an error on purpose: a and l inverted *)
in List.for_all (fun x -> mem x l2) l1 ;;
:; ocamlc -c -warn-error A -verbose -rectypes -g test.ml
:; ocamlc -c -warn-error A -verbose -rectypes -g -dtypes test.ml
Fatal error: exception Stack_overflow
The text was updated successfully, but these errors were encountered:
Indeed, the preprocessing needed for printing recursive types was not
done. A stack overflow would occur for any recurive type (including
objects and variants).
Original bug ID: 1764
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
:; ocamlc -version
3.07+beta 1
:; cat test.ml
let inclus l1 l2 =
let rec mem x = function
[] -> false
| a::l -> (l=x) || (mem x a) (* an error on purpose: a and l inverted *)
in List.for_all (fun x -> mem x l2) l1 ;;
:; ocamlc -c -warn-error A -verbose -rectypes -g test.ml
:; ocamlc -c -warn-error A -verbose -rectypes -g -dtypes test.ml
Fatal error: exception Stack_overflow
The text was updated successfully, but these errors were encountered: