← Back to index
|
Original Bugzilla link
Bug 7248 – [CTFE] Stack overflow on using struct filed pointer with address of array element
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2012-01-08T03:47:00Z
Last change time
2015-06-09T05:10:43Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
verylonglogin.reg
Comments
Comment #0
by verylonglogin.reg — 2012-01-08T03:47:36Z
--- 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(); ---
Comment #1
by bugzilla — 2012-01-14T17:40:47Z
https://github.com/D-Programming-Language/dmd/commit/1cbd1959e41d39c812a8f4c1a17eb8535d44547a
https://github.com/D-Programming-Language/dmd/commit/1394b3c55c740106555cd484697019e4a9b77109