Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006106OCamlCamlp4public2013-07-30 16:552013-08-19 17:01
Reportermottl 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version4.00.1 
Target Version4.01.1+devFixed in Version 
Summary0006106: "Module.(expr)" emitted incorrectly to source
DescriptionConsider file foo.ml:

  let t = ref 0
  let f () = t := Pervasives.(0); t := 42

Using "camlp4o -printer o foo.ml -o bar.ml" we obtain the following in "bar.ml":

  let t = ref 0

  let f () = (t := let open Pervasives in 0; t := 42)

The above is incorrect: "let open Pervasives in 0" needs to be put in parentheses, otherwise the assigned expression ends in "t := 42", which should be the subsequent assignment.
Tagsjunior_job
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-07-30 16:55 mottl New Issue
2013-08-13 22:06 yallop Tag Attached: junior_job
2013-08-19 17:01 doligez Status new => confirmed
2013-08-19 17:01 doligez Target Version => 4.01.1+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker