D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10159 - [2.063] Fix for issue 3449 causes very unclear error messages
Summary: [2.063] Fix for issue 3449 causes very unclear error messages
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-24 00:41 UTC by Jacob Carlborg
Modified: 2024-12-13 18:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jacob Carlborg 2013-05-24 00:41:09 UTC
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.
Comment 1 Kenji Hara 2013-05-24 01:17:08 UTC
(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.
Comment 2 dlangBugzillaToGithub 2024-12-13 18:07:03 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18586

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB