Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
January 25, 2012 [Issue 7366] New: template overload resolution failure | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7366 Summary: template overload resolution failure Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: timon.gehr@gmx.ch --- Comment #0 from timon.gehr@gmx.ch 2012-01-24 19:49:57 PST --- With DMD 2.058head: auto foo(T1)(T1 x){} auto foo(T1,T2)(T1 x,T2 y){} void main(){foo!(ubyte)(0);} Error: template tt.foo(T1) does not match any function template declaration Error: template tt.foo(T1) cannot deduce template function from argument types !(ubyte)(int) Error: template instance foo!(ubyte) errors instantiating template The following works (showing that the first error message is nonsensical): auto foo(T1)(T1 x){} void main(){foo!(ubyte)(0);} -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 19, 2012 [Issue 7366] IFTI fails to consider bounds-checked implicit conversions for non-deduced parameter types | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=7366 timon.gehr@gmx.ch changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|template overload |IFTI fails to consider |resolution failure |bounds-checked implicit | |conversions for non-deduced | |parameter types --- Comment #1 from timon.gehr@gmx.ch 2012-03-19 02:44:53 PDT --- Simpler test case: void foo()(byte k){} void main(){foo(2);} -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 19, 2012 [Issue 7366] IFTI fails to consider bounds-checked implicit conversions for non-deduced parameter types | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=7366 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug@yahoo.com.au --- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-03-19 03:09:39 PDT --- Looks like a duplicate of regression bug 4953. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 10, 2012 [Issue 7366] IFTI fails to consider bounds-checked implicit conversions for non-deduced parameter types | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=7366 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |DUPLICATE --- Comment #3 from yebblies <yebblies@gmail.com> 2012-07-11 01:38:27 EST --- *** This issue has been marked as a duplicate of issue 4953 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation