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





--- Comment #3 from Don <clugd...@yahoo.com.au>  2009-05-27 01:39:19 PDT ---
That patch was incomplete, we also need to test for delegates.

// Revised patch.
+    Type *tb = e1->type->toBasetype();
+     if (type->toBasetype()->ty == Tstruct && tb->ty != Tfunction &&
tb->ty!=Tdelegate)
-    if (type->toBasetype()->ty == Tstruct)
    return this;

// Test case 2
struct Payload {
  int x;
}
Payload y;
void main() { 
 Payload delegate(int) bar;
 bar(1) = y;
}

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

Reply via email to