You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 7329 Reporter: leonidr Assigned to:@gasche Status: closed (set by @xavierleroy on 2017-09-24T15:33:23Z) Resolution: fixed Priority: low Severity: minor Target version: 4.04.0 +dev / +beta1 / +beta2 Fixed in version: 4.04.0 +dev / +beta1 / +beta2 Category: ~DO NOT USE (was: OCaml general)
Bug description
-dsource doesn't give correct output for local open modules.
Steps to reproduce
$ cat source_me.ml
module M = struct
type t = Foo | Bar
end
let () =
let M.(s) = M.(Foo) in
()
$ ocamlc -dsource source_me.ml
module M = struct type t =
| Foo
| Bar end
let () =
let (((((((...(((Fatal error: exception Stack overflow
Additional information
This is a 4.04 bug, but that isn't in the dropdown, please reassign when ready.
I know that -dsource is undocumented and unsupported, but some tools, such as bisect_ppx, rely upon it for testing.
The text was updated successfully, but these errors were encountered:
Fixed using Octachron's patch in 4.04 ( bb95cd3 ) and trunk ( 98472df ). Thanks both for the reporting and quick patching.
(There is no Changes entry for this, which I understand is possible for a bug that only makes sense in the development version and has affected no release yet.)
Original bug ID: 7329
Reporter: leonidr
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2017-09-24T15:33:23Z)
Resolution: fixed
Priority: low
Severity: minor
Target version: 4.04.0 +dev / +beta1 / +beta2
Fixed in version: 4.04.0 +dev / +beta1 / +beta2
Category: ~DO NOT USE (was: OCaml general)
Bug description
-dsource doesn't give correct output for local open modules.
Steps to reproduce
$ cat source_me.ml
module M = struct
type t = Foo | Bar
end
let () =
let M.(s) = M.(Foo) in
()
$ ocamlc -dsource source_me.ml
module M = struct type t =
| Foo
| Bar end
let () =
let (((((((...(((Fatal error: exception Stack overflow
Additional information
The text was updated successfully, but these errors were encountered: