D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3307 - Template alias default parameters aren't resolved properly
Summary: Template alias default parameters aren't resolved properly
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2009-09-08 13:25 UTC by Don
Modified: 2015-06-09 01:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2009-09-08 13:25:06 UTC
This is the fourth bug reported in bug 3392.

struct dog(alias W = 0) 
{ }

dog!(S) foo(alias S)() {
    return dog!(S)();
}

dog!() test3307 = foo!(0)();

---
crash.d(5): Error: cannot implicitly convert expression (dog()) of type dog!(S
) to dog!()
Comment 1 Don 2009-09-08 13:27:09 UTC
Typo: the bug was originally reported in bug 3293.
Comment 2 Kenji Hara 2013-11-22 02:27:35 UTC
At least the issue had been fixed from 2.057.