www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Maybe a dmd bug, what do you think ?

reply user123456789abcABC <user123456789abcABC duff.uh.hu> writes:
Template parameter deduction in partially specialized template 
fails:

---
enum Bar{b,a,r}
void foo(Bar bar, T)(T t){}
alias foob(T) = foo!(Bar.b, T);

void main()
{
     foo!(Bar.b)(8);
     foob(8); // autsch
}
---

It looks like a bug, doesn't it ?
Nov 06 2015
parent rsw0x <anonymous anonymous.com> writes:
On Friday, 6 November 2015 at 08:48:38 UTC, user123456789abcABC 
wrote:
 Template parameter deduction in partially specialized template 
 fails:

 ---
 enum Bar{b,a,r}
 void foo(Bar bar, T)(T t){}
 alias foob(T) = foo!(Bar.b, T);

 void main()
 {
     foo!(Bar.b)(8);
     foob(8); // autsch
 }
 ---

 It looks like a bug, doesn't it ?
I believe this is https://issues.dlang.org/show_bug.cgi?id=1807
Nov 06 2015