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

revised syntax pretty printer crashes with Stack_overflow #4820

Closed
vicuna opened this issue Jun 10, 2009 · 0 comments
Closed

revised syntax pretty printer crashes with Stack_overflow #4820

vicuna opened this issue Jun 10, 2009 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Jun 10, 2009

Original bug ID: 4820
Reporter: jerhoud
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z)
Resolution: fixed
Priority: normal
Severity: crash
Version: 3.10.2
Fixed in version: 3.12.1+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Monitored by: jm

Bug description

with the following input file a.ml :

class virtual ['a, 'b] a = object end

camlp4 pa_o.cmo pr_r.cmo a.ml

floods the output with '(' and finally crashes with exception Stack_overflow

2 parameters and virtual are needed to trigger the bug.

the normal syntax printer works properly on this example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant