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

Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-06-09T02:47:00Z
Last change time
2011-06-11T22:33:41Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
verylonglogin.reg

Attachments

IDFilenameSummaryContent-TypeSize
994main.dBug testcasetext/x-dsrc263

Comments

Comment #0 by verylonglogin.reg — 2011-06-09T02:47:55Z
Created attachment 994 Bug testcase Source code in an attachment
Comment #1 by clugdbug — 2011-06-09T21:27:12Z
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();
Comment #2 by clugdbug — 2011-06-11T22:33:41Z
Already fixed in git master *** This issue has been marked as a duplicate of issue 5258 ***