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

camlp4 + wrong location on warning #5265

Closed
vicuna opened this issue May 13, 2011 · 1 comment
Closed

camlp4 + wrong location on warning #5265

vicuna opened this issue May 13, 2011 · 1 comment
Milestone

Comments

@vicuna
Copy link

vicuna commented May 13, 2011

Original bug ID: 5265
Reporter: Dmitry Grebeniuk
Assigned to: @xclerc
Status: closed (set by @damiendoligez on 2012-09-19T13:33:53Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.13.0+dev
Target version: 4.00.1+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Related to: #5239
Monitored by: @bobzhang

Bug description

$ cd /tmp && echo -e '\nvalue f x = ();' > q.ml && echo ==== && cat q.ml && echo ==== && ocamlc -w A -pp camlp4r q.ml -o q.byte

value f x = ();

File "ghost-location", line 2, characters 8--1:
Warning 27: unused variable x.

The location is wrong (bad file name, bad "end offset").
This error exists in 3.12 too (reproduced with the same command line).

@vicuna
Copy link
Author

vicuna commented Sep 19, 2012

Comment author: @damiendoligez

This was fixed in 4.00.0.

@vicuna vicuna closed this as completed Sep 19, 2012
@vicuna vicuna added the camlp4 label Mar 14, 2019
@vicuna vicuna added this to the 4.00.1 milestone Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
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