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

ocamlcp preprocessing error on methods #7934

Closed
vicuna opened this issue Oct 28, 2002 · 2 comments
Closed

ocamlcp preprocessing error on methods #7934

vicuna opened this issue Oct 28, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 28, 2002

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

Bug description

Full_Name: Xavier Leroy
Version: 3.06
OS:
Submission from: estephe.inria.fr (128.93.11.95)
Submitted by: xleroy

(Problem reported by Francois Pessaux.)

$ cat papy.ml
class foo =
object (self)
method badbadbad : int = 5
end

$ ocamlcp -p a papy.ml
File "/tmp/camlpp479ee2", line 3, characters 2-3:
Syntax error

$ cat /tmp/camlpp479ee2
let _ocaml_prof_cnt_papy = Array.create 0000001 0;; Profiling.counters :=
("papy", ("a", _ocaml_prof_cnt_papy)) :: !Profiling.counters;;
class foo =
object (self)
(_ocaml_prof_cnt_papy.(0) <- Pervasives.succ _ocaml_prof_cnt_papy.(0);
met
hod badbadbad : int = 5)
end

The profiling code is inserted at the wrong place. Same bug in 3.04, except
that the code is inserted at another equally wrong place :-)

@vicuna
Copy link
Author

vicuna commented Oct 28, 2002

Comment author: administrator

$ ocamlcp -p a papy.ml
File "/tmp/camlpp479ee2", line 3, characters 2-3:
Syntax error

Fixed in the working version (3.06+10).

-- Damien

@vicuna
Copy link
Author

vicuna commented Jun 15, 2003

Comment author: administrator

Fixed by DD 2002-10-28

@vicuna vicuna closed this as completed Jun 15, 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