Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006106OCamlCamlp4public2013-07-30 16:552014-07-22 23:40
Reportermottl 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version4.00.1 
Target VersionlaterFixed 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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0011901)
doligez (administrator)
2014-07-22 23:39

Needs to be transferred to the camlp4 BTS.

- 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
2014-05-25 20:20 doligez Target Version 4.01.1+dev => 4.02.0+dev
2014-06-19 17:22 gasche Tag Detached: junior_job
2014-07-22 23:39 doligez Note Added: 0011901
2014-07-22 23:40 doligez Target Version 4.02.0+dev => later


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker