Bug 11569 – Incorrect handling of recursive mixin

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-21T07:06:21Z
Last change time
2021-08-08T21:23:52Z
Assigned to
No Owner
Creator
John Colvin

Comments

Comment #0 by john.loughran.colvin — 2013-11-21T07:06:21Z
This just compiles forever, eating up memory at warp speed: mixin template S(string s) { struct A { mixin(s); template Q(string s) { mixin S!s _A; alias Q = _S.A; } alias B = Q!"enum a = 1;"; } } mixin S!"enum a = 0;";
Comment #1 by john.loughran.colvin — 2021-08-08T21:23:52Z
This is now correctly caught as being recursive