[Issue 6131] [CTFE] Simple call of struct methods causes "Stack overflow" or hanging-up

2011-06-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6131


Don  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
 Status|NEW |RESOLVED
 Resolution||DUPLICATE


--- Comment #2 from Don  2011-06-11 22:33:41 PDT ---
Already fixed in git master

*** This issue has been marked as a duplicate of issue 5258 ***

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


[Issue 6131] [CTFE] Simple call of struct methods causes "Stack overflow" or hanging-up

2011-06-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6131


Don  changed:

   What|Removed |Added

 CC||clugd...@yahoo.com.au


--- Comment #1 from Don  2011-06-09 21:27:12 PDT ---
This is fixed in git master. Probably a dup of an bug which has already been
fixed, but I haven't worked out which one. This is the test case:
--
struct S2 {
int e;
void f2() {
//e = 0; //uncomment to hang-up dmd v2.053
int t = e; //uncomment to "Stack overflow" dmd v2.053
}
}

struct S1 {
S2 s2;
void f1() {
s2.f2();
}
}

int f() {
S1 s1;
s1.f1();
return 0;
}

const t = f();

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