[Issue 10337] New: Error: mutable method glwtf.input.SignalWrapper!().SignalWrapper.Signal!().~this

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 11 11:07:53 PDT 2013


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

           Summary: Error: mutable method
                    glwtf.input.SignalWrapper!().SignalWrapper.Signal!().~
                    this
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: admin at dav1d.de


--- Comment #0 from David <admin at dav1d.de> 2013-06-11 11:07:52 PDT ---
This code fails in DMD 2.063 (+ current git) with an Error in the glue layer,
it worked under 2.063

module glwtf.input;
import std.signals;
struct DefaultAA(value_type, key_type, Default...) if(Default.length < 2) {
    value_type[key_type] _store;
}
struct SignalWrapper(Args...) {
    mixin Signal!(Args);
}
class BaseGLFWEventHandler {
    DefaultAA!(SignalWrapper!(), int) single_key_down;   
}

Error: mutable method
glwtf.input.SignalWrapper!().SignalWrapper.Signal!().~this is not callable
using a const object
dmd: glue.c:1215: virtual unsigned int Type::totym(): Assertion `0' failed.


Odly this fails on my machine (archlinux 64 bit, and on Windows (tested by
"Cybershadow")) but not on dpaste, neither 2.063 nor git

-- 
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