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

wrong location for multi-line string when using camlp4 #4045

Closed
vicuna opened this issue Jun 12, 2006 · 0 comments
Closed

wrong location for multi-line string when using camlp4 #4045

vicuna opened this issue Jun 12, 2006 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Jun 12, 2006

Original bug ID: 4045
Reporter: prevosto
Assigned to: ertai
Status: closed (set by @xavierleroy on 2007-02-21T14:56:55Z)
Resolution: not a bug
Priority: normal
Severity: tweak
Version: 3.10+dev
Fixed in version: 3.10+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues

Bug description

When using camlp4o as preprocessor, ocaml reports errors involving a multi-line string at a wrong location (namely the first character of the last line of the
string):
--- test.ml
1 + "
foo
bar
bla";;

ocamlc -pp "camlp4o" test.ml
File "test.ml", line 4, characters 0-1:
This expression has type string but is here used with type int

Additional information

Hi Virgile,

You should checkout the latest Camlp4 version cause it does not trigger this bug.

ocamlc -pp camlp4o /tmp/test.ml
File "/tmp/test.ml", line 1, characters 4-21:
This expression has type string but is here used with type int

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