Bug 7466 – Error without line number in recursive template expansion
Status
RESOLVED
Resolution
WORKSFORME
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-08T13:34:00Z
Last change time
2015-06-09T05:11:47Z
Keywords
diagnostic
Assigned to
nobody
Creator
clugdbug
Comments
Comment #0 by clugdbug — 2012-02-08T13:34:16Z
This is fail14.d in the test suite.
class A(T)
{
.A!(A) x;
}
void main()
{
A!(int);
}
Error: recursive template expansion for template argument fail14.A!(int).A
Comment #1 by bugzilla — 2012-04-24T11:58:21Z
In 2.059:
foo.d(2): Error: class foo.A(T) recursive template expansion for template argument foo.A!(int).A
foo.d(8): Error: template instance foo.A!(int) error instantiating
foo.d(8): Error: type has no effect in expression (A)