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.
Comment #1 by lovelydear — 2012-04-27T07:44:03Z
Output of 2.059: PS E:\DigitalMars\dmd2\samples> dmd -c bug.d bug.d(4): Error: undefined identifier Bar bug.d(7): Error: mixin bug.Foo!() error instantiating PS E:\DigitalMars\dmd2\samples>
Comment #2 by lovelydear — 2012-05-01T11:57:22Z
This should be closed as RESOLVED.