D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7698 - can't specialize parameterized template value
Summary: can't specialize parameterized template value
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-13 04:13 UTC by Martin Nowak
Modified: 2012-03-22 10:17 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 Martin Nowak 2012-03-13 04:13:01 UTC
cat > bug.d << CODE
template foo(T, T val : 0) { }
alias foo!(int, 0) fooi0;
CODE

dmd -c bug

--------

bug.d(2): Error: forward reference to type T
bug.d(2): Error: cannot implicitly convert expression (0) of type int to T
Comment 1 github-bugzilla 2012-03-15 21:42:58 UTC
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/42fa3d6d13d98343cc73f2de5ab7c1cc0aa11db9
Merge pull request #807 from dawgfoto/fix7698

fix issue 7698