Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-for-pack seems to be broken in some cases #6506

Closed
vicuna opened this issue Jul 31, 2014 · 1 comment
Closed

-for-pack seems to be broken in some cases #6506

vicuna opened this issue Jul 31, 2014 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 31, 2014

Original bug ID: 6506
Reporter: @whitequark
Status: resolved (set by @xavierleroy on 2017-02-17T15:24:55Z)
Resolution: not a bug
Priority: normal
Severity: minor
Version: 4.02.0+beta1 / +rc1
Fixed in version: 4.05.0 +dev/beta1/beta2/beta3/rc1
Category: ~DO NOT USE (was: OCaml general)
Related to: #5995
Monitored by: @gasche @hcarty

Bug description

While working on PR6497, I discovered that -for-pack is simply ignored with ocamlc. I believe this means that it results in incorrect output in some cases, for example:

  • Names embedded in exception constructors (visible in Printexc, etc)
  • Debug information
  • More ?
@vicuna
Copy link
Author

vicuna commented Feb 17, 2017

Comment author: @xavierleroy

In 4.05 exception names look OK:

$ cat foo.ml
exception Foo
let _ = raise Foo
$ ocamlc -c -for-pack P foo.ml
$ ocamlc -pack -o P.cmo foo.cmo
$ ocamlc P.cmo
$ ./a.out
Fatal error: exception P.Foo.Foo

For the other potentially incorrect outputs, please submit actual examples as new problem reports. I'm going to close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant