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 accepts bad syntax and may also bomb on it (Mantis 5705) #75

Open
damiendoligez opened this issue Jan 13, 2015 · 0 comments
Open

Comments

@damiendoligez
Copy link

Transferred from http://caml.inria.fr/mantis/view.php?id=5705
See the Mantis page for the full discussion

The following file x.ml will lead to a syntax error with ocaml x.ml:

  let f x : type a. a = ()

But camlp4o x.ml will accept and print the human-readable format.

By contrast, ocamldep -pp camlp4o x.ml will bomb:

  Assertion failed, file "camlp4/Camlp4/Struct/Camlp4Ast2OCamlAst.ml", line 284, char 8
  Preprocessing error on file x.ml
  x.cmo :
  x.cmx :
  EXIT STATUS 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant