March 09, 2014 [Issue 5105] Member function template cannot be synchronized | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=5105 Adrien Pensart <crunchengine@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |crunchengine@gmail.com Resolution|FIXED | Severity|normal |regression --- Comment #3 from Adrien Pensart <crunchengine@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: ------- |
March 12, 2014 [Issue 5105] Member function template cannot be synchronized | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=5105 Adrien Pensart <crunchengine@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from Adrien Pensart <crunchengine@gmail.com> 2014-03-12 13:24:21 PDT --- The test case was invalid, shared and synchronized keywords modifies the type of object when applied on class. synchronized class synchronized_C { void foo(T)(T a) {} } shared class shared_C { void foo(T)(T a) {} } synchronized shared class synchronized_shared_C { void foo(T)(T a) {} } void main() { auto c1 = new shared synchronized_C; c1.foo(10); auto c2 = new shared shared_C; c2.foo(10); auto c3 = new shared synchronized_shared_C; c3.foo(10); } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation