[Issue 13204] New: recursive alias declaration
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 25 13:01:47 PDT 2014
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 at puremagic.com
Reporter: mrmocool at 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.
--
More information about the Digitalmars-d-bugs
mailing list