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 reports wrong file location #3733

Closed
vicuna opened this issue Jul 18, 2005 · 1 comment
Closed

camlp4 reports wrong file location #3733

vicuna opened this issue Jul 18, 2005 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 18, 2005

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

Bug description

Full_Name: Christoph Bauer
Version: 3.08.3
OS:
Submission from: 213.68.136.226 (213.68.136.226)

Hi,

Camlp4 reports a worng file location under some spection
conditions:

1.) location information is provided in the ml-file by

100 "file"

2.) it is a syntax error (forgotten in, wrong ;)

For other errors (wrong variable names) the filename is always correct.
File line number is always correct.

Example:
(* test.ml *)

100 "myfilename"

let a in b
(eof)

ocamlc -pp camlp4o test.ml
-> error in file "test.ml"

(* test.ml *)

100 "myfilename"

let a = b in b
(eof)

ocamlc -pp camlp4o test.ml
-> error in file "myfilename"

Thanks,
Christoph Bauer

@vicuna
Copy link
Author

vicuna commented Oct 21, 2005

Comment author: administrator

Fixed by MM 2005-10-21

@vicuna vicuna closed this as completed Oct 21, 2005
@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