[Issue 1459] ICE(cgcs.c) on attempt to set value of non-lvalue return struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 27 01:39:20 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1459
--- Comment #3 from Don <clugdbug at 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: -------
More information about the Digitalmars-d-bugs
mailing list