Bug 6432 – Compilation doesn't terminate on a recursive mixin error
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-08-03T02:40:00Z
Last change time
2012-05-04T15:38:12Z
Assigned to
nobody
Creator
samukha
Comments
Comment #0 by samukha — 2011-08-03T02:40:28Z
mixin template Foo(A...)
{
mixin Foo!(Bar, A);
}
mixin Foo!();
test.d(5): Error: undefined identifier Bar
test.d(5): Error: undefined identifier Bar
test.d(5): Error: undefined identifier Bar
...
The error will be printed repeatedly until the maximum recursion depth is reached.