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

Camlp4 produces wrong location information #4521

Closed
vicuna opened this Issue Mar 19, 2008 · 1 comment

Comments

Projects
None yet
1 participant
@vicuna
Copy link
Collaborator

vicuna commented Mar 19, 2008

Original bug ID: 4521
Reporter: hirokawa
Assigned to: ertai
Status: closed (set by @xavierleroy on 2010-04-29T12:25:50Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.10.2
Fixed in version: 3.11+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Monitored by: vouillon hirokawa

Bug description

camlp4o and camlp4r produces a wrong location for `e1 e2'.

$ cat a.ml
float 1

$ ocamlc -pp camlp4o -c -dtypes a.ml
$ cat a.annot
"a.ml" 1 0 0 "a.ml" 1 0 5
type(
int -> float
)
"a.ml" 1 0 6 "a.ml" 1 0 7
type(
float
)
"a.ml" 1 0 6 "a.ml" 1 0 7
type(
int
)

The last item should be ``"a.ml" 1 0 0 "a.ml" 1 0 7''; cf.

$ ocamlc -c -dtypes a.ml
$ cat a.annot
"a.ml" 1 0 0 "a.ml" 1 0 5
type(
int -> float
)
"a.ml" 1 0 6 "a.ml" 1 0 7
type(
int
)
"a.ml" 1 0 0 "a.ml" 1 0 7
type(
float
)

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Sep 23, 2008

Comment author: ertai

This bug is now fixed in the CVS HEAD version.

Thank to Jerome Vouillon for finding the cause of the bug!

@vicuna vicuna closed this Apr 29, 2010

@vicuna vicuna added camlp4 bug labels Mar 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.