https://issues.dlang.org/show_bug.cgi?id=19157

          Issue ID: 19157
           Summary: template instance `object.RTInfo!(Bar)` recursive
                    expansion
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: d...@me.com

Compiling the following code with DMD 2.081.1:

struct Foo(T)
{
    void foo()
    {
        struct Bar {}

        Foo!Bar a;
    }
}

Foo!int asd()
{
    return Foo!int.init;
}

Results in the following error message:

foo.d(5): Error: template instance `object.RTInfo!(Bar)` recursive expansion

--

Reply via email to