Bug 2097 – -g + auto ref => stack overflow, similar to issue 2033
Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-05-11T14:15:00Z
Last change time
2014-02-24T15:32:13Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
amaury.pouly
Comments
Comment #0 by amaury.pouly — 2008-05-11T14:15:52Z
Hi, the following code compiled with -g with latest version of dmd produces a Stack Overflow whereas it does not without the -g switch:
struct T
{
T[] type_list;
}
I believe this bug is be related to issue 2033 but instead of circular reference, the struct refers to itself.
Comment #1 by clugdbug — 2009-05-07T09:40:13Z
Works for me: This stopped failing at the same time that 2033 was fixed. I'm almost certain it was the same bug.
*** This bug has been marked as a duplicate of 2033 ***