www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: admin dav1d.de


--- Comment #0 from David <admin 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: -------
Jun 11 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10337


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com


--- Comment #1 from Vladimir Panteleev <thecybershadow gmail.com> 2013-06-11
21:12:26 EEST ---
My DMD git was outdated (was on 9edb35f64c700eca65be718aa057cdc344896836). The
error does not occur with 4bbef4f21141c6b21f35d133f348a3b215ad6513.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 11 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10337



--- Comment #2 from Kenji Hara <k.hara.pg 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: -------
Jun 13 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10337


David <admin dav1d.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #3 from David <admin dav1d.de> 2013-06-14 07:40:42 PDT ---
I reinstalled dmd and it works now

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