[Issue 642] error: mixin "static this" into where it cannot be

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 20 02:14:58 PDT 2009


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


clugdbug at yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic




------- Comment #6 from clugdbug at yahoo.com.au  2009-04-20 04:15 -------
Another example of 14G/14H, from bug 1533. [Unknown]'s patch fixes this, but
does result in one of the error messages having no line number.
---
template T(){
   this(int i){}  // causes 14G segfault
  ~this() {}     // causes 14H segfault
}

struct C{
   void foo(){
        bar();
        this.t(7);
   }
   mixin T!() t;
}


-- 



More information about the Digitalmars-d-bugs mailing list