digitalmars.D.bugs - [Issue 13204] New: recursive alias declaration
- via Digitalmars-d-bugs (27/27) Jul 25 2014 https://issues.dlang.org/show_bug.cgi?id=13204
https://issues.dlang.org/show_bug.cgi?id=13204 Issue ID: 13204 Summary: recursive alias declaration Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: diagnostic, rejects-valid, spec Severity: normal Priority: P2 Component: DMD Assignee: nobody puremagic.com Reporter: mrmocool gmx.de struct ABase(uint v) { alias whatever = Foo; } alias A1 = ABase!1; // L6 alias Foo = A1; $ dmd -c test.d test.d(6): Error: alias ddraw.A1 recursive alias declaration test.d(6): Error: template instance ddraw.ABase!1u error instantiating Not sure if it's supposed to work. At least it compiles when not using a template. And the error message could be more helpful. This one was hard to figure out. --
Jul 25 2014