| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0004711 | OCaml | Camlp4 | public | 2009-02-05 16:12 | 2012-07-11 23:05 |
|
| Reporter | mottl | |
| Assigned To | ertai | |
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | no change required | |
| Platform | | OS | | OS Version | |
| Product Version | 3.11.0 | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0004711: Camlp4 parser fails on valid syntax |
| 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. |
| Tags | No tags attached. |
|
| Attached Files | |
|