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