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
Closed

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

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

Comments

@vicuna
Copy link

vicuna 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
Copy link
Author

vicuna commented May 25, 2011

Comment author: @lefessan

This is a duplicate of #5238

@vicuna
Copy link
Author

vicuna 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
Projects
None yet
Development

No branches or pull requests

2 participants