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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 13 19:16:30 PDT 2013


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



--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-06-13 19:16:28 PDT ---
(In reply to comment #0)
> 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

This looks like a dup of bug 10106. You may need to update your local druntime.

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