Bug 3307 – Template alias default parameters aren't resolved properly

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-09-08T13:25:00Z
Last change time
2015-06-09T01:20:50Z
Keywords
rejects-valid
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2009-09-08T13:25:06Z
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 by clugdbug — 2009-09-08T13:27:09Z
Typo: the bug was originally reported in bug 3293.
Comment #2 by k.hara.pg — 2013-11-22T02:27:35Z
At least the issue had been fixed from 2.057.