[Issue 7698] New: can't specialize parameterized template value
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 13 04:12:52 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7698
Summary: can't specialize parameterized template value
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2012-03-13 04:13:01 PDT ---
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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list