Navigation Menu

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 the toplevel #8182

Closed
vicuna opened this issue Jun 24, 2003 · 1 comment
Closed

stack overflow in the toplevel #8182

vicuna opened this issue Jun 24, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 24, 2003

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

Bug description

Full_Name: Virgile Prevosto
Version: 3.06
OS: Linux (RedHat 7.2)
Submission from: 132.227.83.215 (132.227.83.215)

Entering the following code at toplevel results in a Stack Overflow, and exits
the toplevel:

class mother = object
end;;

class daughter =
object
inherit mother
method get_x = 0
end;;

let f (l : #mother list ) = List.tl l;;

let m1 = new mother ;;

let m2 = new daughter;;

f [m1];;

f [m2];;

[m1; m2];; (* not well-typed. *)
[m1;(m2 :>mother)];;

Stranger than that, if you omit the calls to f or the erroneous definition [m1;
m2], everything works well...

@vicuna
Copy link
Author

vicuna commented Jul 8, 2003

Comment author: administrator

Seems fixed in 3.06+37

@vicuna vicuna closed this as completed Jul 8, 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