Bug 4892 – Regression(1.062, D1 only) Stack overflow when compiling a recursive alias declaration
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2010-09-18T16:17:00Z
Last change time
2011-04-20T00:03:07Z
Keywords
ice-on-invalid-code
Assigned to
nobody
Creator
siegelords_abode
Comments
Comment #0 by siegelords_abode — 2010-09-18T16:17:11Z
This code:
alias a b;
alias b a;
a x;
Results in a infinite loop when compiled in DMD 1.064 after reporting these errors:
test.d(1): Error: alias test.b recursive alias declaration
test.d(1): Error: alias test.b recursive alias declaration
DMD 1.061 does not exhibit this behaviour.
Comment #1 by clugdbug — 2010-09-20T08:10:25Z
Regression since 1.062; D1 only.
Comment #2 by ibuclaw — 2011-04-19T17:40:33Z
*** Issue 5863 has been marked as a duplicate of this issue. ***
Comment #3 by ibuclaw — 2011-04-20T00:03:07Z
And this is a duplicate of 5086.
*** This issue has been marked as a duplicate of issue 5086 ***