[Issue 6131] [CTFE] Simple call of struct methods causes "Stack overflow" or hanging-up
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 9 21:31:47 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6131
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #1 from Don <clugdbug at yahoo.com.au> 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: -------
More information about the Digitalmars-d-bugs
mailing list