[Issue 19157] New: template instance `object.RTInfo!(Bar)` recursive expansion
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 11 13:32:25 UTC 2018
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: nobody at puremagic.com
Reporter: doob at 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
--
More information about the Digitalmars-d-bugs
mailing list