Don <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |
         Resolution|                            |INVALID
           Severity|regression                  |normal

--- Comment #1 from Don <> 2011-12-09 01:53:08 PST ---
This isn't a regression. It gave exactly the same error back in DMD 1.000.

In fact, it's not even a bug: in D1, 'this' for a struct is a pointer to that
struct. As you can see with this code: 

struct Test1 {
    static assert(is(typeof(this) == Test1)); // FAILS !!!

In D2, the 'this' pointer is the struct itself.

If you make this change:

-    alias This* pThis;
+    alias This pThis;

your code will compile.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to