January 08, 2012 [Issue 7248] New: [CTFE] Stack overflow on using struct filed pointer with address of array element | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7248 Summary: [CTFE] Stack overflow on using struct filed pointer with address of array element Product: D Version: D1 & D2 Platform: Other OS/Version: Windows Status: NEW Keywords: ice-on-invalid-code Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: verylonglogin.reg@gmail.com --- Comment #0 from Denis <verylonglogin.reg@gmail.com> 2012-01-08 14:47:36 MSK --- --- struct S { S* ptr; } int f() { S[1] sarr; sarr[0].ptr = &sarr[0]; sarr[0].ptr = null; // causes Stack overflow S* t = sarr[0].ptr; // Regression: ditto for head, works with 2.057 return 0; } enum e = f(); --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 15, 2012 [Issue 7248] [CTFE] Stack overflow on using struct filed pointer with address of array element | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis | http://d.puremagic.com/issues/show_bug.cgi?id=7248 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-01-14 17:40:47 PST --- https://github.com/D-Programming-Language/dmd/commit/1cbd1959e41d39c812a8f4c1a17eb8535d44547a https://github.com/D-Programming-Language/dmd/commit/1394b3c55c740106555cd484697019e4a9b77109 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation