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 parser fails on valid syntax #4711

Closed
vicuna opened this issue Feb 5, 2009 · 0 comments
Closed

Camlp4 parser fails on valid syntax #4711

vicuna opened this issue Feb 5, 2009 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Feb 5, 2009

Original bug ID: 4711
Reporter: @mmottl
Assigned to: ertai
Status: closed (set by @xavierleroy on 2015-12-11T18:07:17Z)
Resolution: not a bug
Priority: normal
Severity: minor
Version: 3.11.0
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues

Bug description

The following preprocessor invocation will fail:

camlp4o -printer o -str "let f ?x:_ () = ()"

Note that the previous version of camlp4o silently dropped "?x:" and only left the underscore. It seems this bug has not been correctly resolved.

Users who run into this problem should rewrite their functions to not use just the underscore. Writing e.g. "?x:_x" instead will also suppress warnings concerning unused variables, but will surprisingly work.

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