Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004331OCamlfor Camlp4 use https://github.com/ocaml/camlp4/issuespublic2007-06-29 02:142010-04-29 14:26
Reporteryallop 
Assigned Toertai 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.10.0 
Target VersionFixed in Version3.10+dev 
Summary0004331: camlp4o can't parse guards on "fun" expressions
DescriptionHere's the problem:

   $ cat test.ml
   let _ = fun x when x > 3 -> 2

   $ ocamlc test.ml
   File "test.ml", line 1, characters 8-29:
   Warning X: bad style, all clauses in this pattern-matching are guarded.

   $ camlp4of test.ml
   File "test.ml", line 1, characters 14-18:
   Parse error: [fun_def] expected after [labeled_ipatt] (in [expr])
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004359)
ertai (developer)
2007-11-27 14:35

Thanks for the report. This is now fixed in the CVS (both in trunk and release310 branch).

- Issue History
Date Modified Username Field Change
2007-06-29 02:14 yallop New Issue
2007-11-10 15:02 xleroy Status new => assigned
2007-11-10 15:02 xleroy Assigned To => ertai
2007-11-27 14:35 ertai Note Added: 0004359
2007-11-27 14:35 ertai Status assigned => resolved
2007-11-27 14:35 ertai Resolution open => fixed
2007-11-27 14:35 ertai Fixed in Version => 3.10+dev
2010-04-29 14:26 xleroy Status resolved => closed
2016-02-08 12:49 doligez Category Camlp4 => for Camlp4 use https://github.com/ocaml/camlp4/issues/102 [^]
2016-02-08 12:50 doligez Category for Camlp4 use https://github.com/ocaml/camlp4/issues/102 [^] => for Camlp4 use https://github.com/ocaml/camlp4/issues [^]


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker