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
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