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

Stack overflow in polymorphic variants #8188

Closed
vicuna opened this issue Jun 26, 2003 · 2 comments
Closed

Stack overflow in polymorphic variants #8188

vicuna opened this issue Jun 26, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 26, 2003

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

@vicuna
Copy link
Author

vicuna commented Jun 28, 2003

Comment author: administrator

From: bywang@saul.cis.upenn.edu

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...

Try cvs update again for more improvements...

Jacques

@vicuna
Copy link
Author

vicuna commented Jun 30, 2003

Comment author: administrator

Fixed by JG 2003-06-28

@vicuna vicuna closed this as completed Jun 30, 2003
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant