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 with class types #8359

Closed
vicuna opened this issue Nov 4, 2003 · 2 comments
Closed

Stack overflow with class types #8359

vicuna opened this issue Nov 4, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 4, 2003

Original bug ID: 1917
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Damien Pous
Version: 3.07
OS: Debian/GNU Linux (testing/unstable)
Submission from: mailhost.ens-lsh.fr (193.51.131.2)

the following code produces a Stack overflow at compile time
(ocamlc, ocamlopt, toplevel)

<<
class type ['a, 'b] a = object
method b: ('a, 'b) #b as 'b
method as_a: ('a, 'b) a
end and ['a, 'b] b = object
method a: ('a, 'b) #a as 'a
method as_b: ('a, 'b) b
end

class type ['b] ca = object ('s) inherit ['s, 'b] a end
class type ['a] cb = object ('s) inherit ['a, 's] b end

type bt = 'b ca cb as 'b

renaming methods as_a and as_b to the same name "fix" it...

@vicuna
Copy link
Author

vicuna commented Nov 7, 2003

Comment author: administrator

Fixed by Jacques in ctypes.ml (2003-11-07)

@vicuna vicuna closed this as completed Nov 7, 2003
@vicuna
Copy link
Author

vicuna commented Nov 7, 2003

Comment author: administrator

From: Damien.Pous@ens-lyon.fr

the following code produces a Stack overflow at compile time
(ocamlc, ocamlopt, toplevel)

Thanks for the report.
This is now fixed in CVS.

Jacques

@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