[Issue 2870] New: Recursive mixin hangs compiler
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 21 06:55:08 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2870
Summary: Recursive mixin hangs compiler
Product: D
Version: 1.042
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: ice-on-invalid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: clugdbug at yahoo.com.au
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);
--
More information about the Digitalmars-d-bugs
mailing list