[Issue 10767] New: Regression (2.057): Type inference does not work with a function with a UDT parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 6 17:02:28 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10767
Summary: Regression (2.057): Type inference does not work with
a function with a UDT parameter
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-06 17:02:27 PDT ---
-----
struct S { }
void test(F)(F f) { }
void main()
{
test( (int) { } );
test( (S) { } ); // L10
}
-----
2.057:
$ dmd test.d
>
2.058:
$ dmd test.d
> test.d(10): Error: template test.test(F) does not match any function template declaration
> test.d(10): Error: template test.test(F) cannot deduce template function from argument types !()(void)
--
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