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 and line number #3179
Comments
Comment author: administrator
This is precisely bug #3074, and it's been fixed in the CVS (see -- Michel Mauny |
Comment author: administrator See fixed bug #3074. |
Comment author: administrator Le 20.09.2004, à 11:13:32, Michel Mauny a écrit:
-- |
Comment author: administrator Pour info, le bug #2865 est resté ouvert car, comme le dit la note Cela dit, il se peut en effet que les logs soient un peu confus sur -- Michel virgile.prevosto@m4x.org wrote/écrivait (Wed, Sep 22, 2004 at 12:06:33PM +0200):
-- |
Original bug ID: 3179
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Virgile Prevosto
Version: 3.08.1
OS: Linux (Debian sarge)
Submission from: mpino2410.ag2.mpi-sb.mpg.de (139.19.24.15)
[Might be related to bug #3074]
Hello,
camlp4 seems to "forget" to increment the line number when a string is split on
two lines with '', so that warning and error positions become inaccurate:
---------- error.ml ------
let a = "a very long
string";;
let b = a; a;;
----------- error.ml ------
~/unison-sync/Camltries [558]$ ocamlc error.ml
File "error.ml", line 4, characters 8-9:
Warning: this expression should have type unit.
~/unison-sync/Camltries [559]$ ocamlc -pp camlp4o error.ml
File "error.ml", line 3, characters 8-9:
Warning: this expression should have type unit.
E tutto per oggi, a la prossima volta
Virgile
The text was updated successfully, but these errors were encountered: