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

[2.063] Fix for issue 3449 causes very unclear error messages #18586

Open
dlangBugzillaToGithub opened this issue May 24, 2013 · 1 comment
Open

Comments

@dlangBugzillaToGithub
Copy link

Jacob Carlborg (@jacob-carlborg) reported this on 2013-05-24T00:41:09Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=10159

Description

Except that the fix for issue 3449 causes existing code to silently change behavior. It can also cause very unclear and confusing error messages. I hit a couple of these when trying to compile Tango.

Example of error messages I got:

* tango/io/selector/SelectSelector.d(156): Error: function tango.io.selector.SelectSelector.HandleSet.opAssign is not callable because it is annotated with @disable

https://github.com/SiegeLord/Tango-D2/blob/d2port/tango/io/selector/SelectSelector.d#L156

The code doesn't use @disable at all. "opAssign" is not overloaded. It's very confusing that keywords and functions that don't exist in the source code are mentioned.

* Error: cannot modify struct this HandleSet with immutable members

No file or line information.
@dlangBugzillaToGithub
Copy link
Author

k.hara.pg commented on 2013-05-24T01:17:08Z

(In reply to comment #0)
> * Error: cannot modify struct this HandleSet with immutable members
> 
> No file or line information.

I opened bug 10160 to fix the strange error message.

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