[Issue 10159] New: [2.063] Fix for issue 3449 causes very unclear error messages

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 24 00:41:11 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10159

           Summary: [2.063] Fix for issue 3449 causes very unclear error
                    messages
           Product: D
           Version: future
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: doob at me.com


--- Comment #0 from Jacob Carlborg <doob at me.com> 2013-05-24 00:41:09 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list