[Issue 5105] Member function template cannot be synchronized
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 9 07:55:35 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=5105
Adrien Pensart <crunchengine at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |crunchengine at gmail.com
Resolution|FIXED |
Severity|normal |regression
--- Comment #3 from Adrien Pensart <crunchengine at gmail.com> 2014-03-09 07:55:32 PDT ---
test_case_5105.d:
void main()
{
auto c = new C;
c.foo(10);
}
synchronized class C
{
void foo(T)(T a) {}
}
Fails again in DMD 2.065 or before :
dmd test_case_5105.d
test_case_5105.d(12): Error: template test_case_5105.C.foo cannot deduce
function from argument types !()(int), candidates are:
test_case_5105.d(3): test_case_5105.C.foo(T)(T a)
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list