www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11288] New: dmd assertion when assigning to (static) opDispatch

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

           Summary: dmd assertion when assigning to (static) opDispatch
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: alexander.breckel gmail.com


--- Comment #0 from aneas <alexander.breckel gmail.com> 2013-10-17 04:50:25 PDT
---
struct A {
  void opDispatch(string s, T)(T x) { // static doesn't work either
  }
}

void main() {
  A.test = true;
  // dmd: expression.c:10803: virtual Expression* AssignExp::semantic(Scope*):
Assertion `e1->type' failed.
}

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