<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/8198f69b58950cca6919229e8f43d261"
  from="Artem Prysyaznuk &lt;artem_pr@y...&gt;"
  author="Artem Prysyaznuk"
  date="2003-10-30T18:46:40"
  subject="[Caml-list] camlp4 not track valid position in source file"
  prev="2003/10/02243bece60cca6bd1ce2e86faebb27b"
  next="2003/10/16cf1119550bc482f61d8a175850278e"
  prev-thread="2003/10/89daa7fd59e499b8d6e24c3bbae1909e"
  next-thread="2003/10/565afebe9bfe3afddd7b08165e5fce1c"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] camlp4 not track valid position in source file">
<msg 
  url="2003/10/8198f69b58950cca6919229e8f43d261"
  from="Artem Prysyaznuk &lt;artem_pr@y...&gt;"
  author="Artem Prysyaznuk"
  date="2003-10-30T18:46:40"
  subject="[Caml-list] camlp4 not track valid position in source file">
</msg>
</thread>

<contents>
Hello, 

Next dialog shell describe problem:

$ ocamlc -version
  3.07+2
$ camlp4o -v
  Camlp4 version 3.07+2
$ cat a.ml
  let test () =
        raise Not_found;;
  test ();;
$ export OCAMLRUNPARAM=b

Without camlp4 all ok.

$ ocamlc -g a.ml
$ ./a.out
  Fatal error: exception Not_found
  Raised at file "a.ml", line 2, character 16
  Called from file "a.ml", line 3, character 7

But if I use camlp4o, output after exception:

$ ocamlc -pp camlp4o -g a.ml
$ ./a.out
Fatal error: exception Not_found
Raised at file "", line 1, character 31
Called from file "", line 1, character 41

So, file names and line numbers are missing.

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

