You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6177 Reporter: furuse Assigned to:@bobzhang Status: closed (set by @diml on 2016-12-07T17:27:33Z) Resolution: open Priority: normal Severity: minor Version: 4.01.0 Target version: later Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues Monitored by:@gasche
Bug description
Compile the following by ocamlc -c -I +camlp4 -pp camlp4of x.ml :
(* x.ml *)
open Camlp4
open PreCast
open Ast
let _loc = Loc.ghost
let _ = <:expr< $hello$ >>
It reports an error:
File "x.ml", line 8, characters 16-21:
Error: Unbound value hello
and this position line 8, char 16-21 is one char left from the correct position of the identifier hello. It is not a big issue but exists for years.
The text was updated successfully, but these errors were encountered:
I don't have time to look into the problem so far, but I think it's a known issue in Camlp4. The problem lies in all the Ant variants in Camlp4Ast only carries string.
For example:
BAnt of string
ReAnt of string
For a single identifier $xx, the location could be correct, but for a general expression it would be hard.
By the way, my branch of Camlp4, Fan solves the problem in this way.
Original bug ID: 6177
Reporter: furuse
Assigned to: @bobzhang
Status: closed (set by @diml on 2016-12-07T17:27:33Z)
Resolution: open
Priority: normal
Severity: minor
Version: 4.01.0
Target version: later
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Monitored by: @gasche
Bug description
Compile the following by ocamlc -c -I +camlp4 -pp camlp4of x.ml :
(* x.ml *)
open Camlp4
open PreCast
open Ast
let _loc = Loc.ghost
let _ = <:expr<$hello$ >>
It reports an error:
File "x.ml", line 8, characters 16-21:
Error: Unbound value hello
and this position line 8, char 16-21 is one char left from the correct position of the identifier hello. It is not a big issue but exists for years.
The text was updated successfully, but these errors were encountered: