Bug 2870 – Recursive mixin hangs compiler

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2009-04-21T08:55:00Z
Last change time
2014-04-18T09:12:04Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2009-04-21T08:55:13Z
This is from dstress test case template_16_A.d. This should generate a "recursive template expansion" error, like related errors do, but it doesn't; it compiles forever. ----- template Template(int i) { mixin Template!(i+1); } mixin Template!(0);
Comment #1 by clugdbug — 2009-05-14T01:30:30Z
Fixed DMD2.030 and 1.045