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

Some errors are not correctly printed because input_name = "_none_" #5277

Closed
vicuna opened this issue May 23, 2011 · 2 comments

Comments

Projects
None yet
2 participants
@vicuna
Copy link

commented May 23, 2011

Original bug ID: 5277
Reporter: @lefessan
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2011-08-04T15:00:46Z)
Resolution: fixed
Priority: normal
Severity: minor
Platform: all
OS: all
OS Version: all
Version: 3.12.0
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #5238

Bug description

In parsing/location.ml, the default value for input_name is "none", but a test in the same file assumes the default is "", and tries to open the file otherwise, which generates a failure in the case of "none" that prevents correct display of the message.

Steps to reproduce

ocamlc -pack -o x.cmo y.cmi
where y.mli contains some "val x : int".

File attachments

@vicuna

This comment has been minimized.

Copy link
Author

commented May 25, 2011

Comment author: @lefessan

This is a duplicate of #5238

@vicuna

This comment has been minimized.

Copy link
Author

commented Aug 4, 2011

Comment author: @damiendoligez

Fixed in 3.12.2+dev and in trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.