D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7466 - Error without line number in recursive template expansion
Summary: Error without line number in recursive template expansion
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 critical
Assignee: No Owner
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2012-02-08 13:34 UTC by Don
Modified: 2015-06-09 05:11 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2012-02-08 13:34:16 UTC
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 Walter Bright 2012-04-24 11:58:21 UTC
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)