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: 1731 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Bow-Yaw Wang
Version: 3.06+36 (2003-06-19)
OS: Mac OS X
Submission from: 140.109.21.73 (140.109.21.73)
Adding polymorphic variants constraints in classes may
cause stack overflow. Here is the source:
b.ml:
class ['t] a =
object
constraint 't = [> `A of 't a]
end
Adding polymorphic variants constraints in classes may
cause stack overflow. Here is the source:
Good, you have uncovered a wrong fix to a previous bug. It appeared to
work only by chance.
Your bug was easy to fix, but I had a hard time correcting correctly
the previous one...
Original bug ID: 1731
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Bow-Yaw Wang
Version: 3.06+36 (2003-06-19)
OS: Mac OS X
Submission from: 140.109.21.73 (140.109.21.73)
Adding polymorphic variants constraints in classes may
cause stack overflow. Here is the source:
b.ml:
class ['t] a =
object
constraint 't = [> `A of 't a]
end
type t = [ `A of t a ]
dhcp066:~$ocamlc -c b.ml
Fatal error: exception Stack_overflow
If the constraint is removed, the compiler works fine.
Please take a look, thanks.
Bow-Yaw
The text was updated successfully, but these errors were encountered: