September 25, 2011 [Issue 4953] Regression(2.031): templates don't do implicit conversion properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | http://d.puremagic.com/issues/show_bug.cgi?id=4953 Erik Baklund <ebaklund@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebaklund@hotmail.com --- Comment #9 from Erik Baklund <ebaklund@hotmail.com> 2011-09-25 01:38:23 PDT --- Yet another example: module main; struct MyStruct { void funOpAssign(float[1u] data) { } void opOpAssign(string op)(float[1u] data) if(op=="<<") { } } int main(string[] argv) { // dmd v2.054, v2.055 MyStruct s; float[1u] a = [1.0f]; // OK: Implicit cast from float[] compiles s.funOpAssign([1.0f]); // OK: Implicit cast from float[] compiles s <<= [1.0f]; // Issue: Implicit cast from float[] does not compile s <<= cast(float[1u])[1.0f]; // OK: Explicit cast from float[] compiles return 0; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 19, 2012 [Issue 4953] Regression(2.031): templates don't do implicit conversion properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | http://d.puremagic.com/issues/show_bug.cgi?id=4953 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|pull | AssignedTo|nobody@puremagic.com |bugzilla@digitalmars.com --- Comment #10 from yebblies <yebblies@gmail.com> 2012-02-20 00:17:01 EST --- The pull is still valid (if in need of a rebase) but the solution needs a decision from Walter on how the match level problem is going to be solved in the future. See issue 2367 for another example. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 19, 2012 [Issue 4953] Regression(2.031): templates don't do implicit conversion properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | http://d.puremagic.com/issues/show_bug.cgi?id=4953 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx --- Comment #11 from hsteoh@quickfur.ath.cx 2012-03-19 08:04:35 PDT --- Another data point: void f(dstring d) { dstring e = d; } f("abc"); // OK void f()(dstring d) { dstring e = d; } f("abc"); // OK void f(byte[] b) { byte[] c = b; } f([1,2,3]); // OK void f()(byte[] b) { byte[] c = b; } f([1,2,3]); // Error: template test2.f() does not match any function template declaration // Error: template test2.f() cannot deduce template function from argument types !()(int[]) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 24, 2012 [Issue 4953] Regression(2.031): templates don't do implicit conversion properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | http://d.puremagic.com/issues/show_bug.cgi?id=4953 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #12 from Kenji Hara <k.hara.pg@gmail.com> 2012-03-24 02:50:06 PDT --- https://github.com/D-Programming-Language/dmd/pull/45 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 12, 2012 [Issue 4953] Regression(2.031): templates don't do implicit conversion properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | http://d.puremagic.com/issues/show_bug.cgi?id=4953 Brad Roberts <braddr@puremagic.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|pull | CC| |braddr@puremagic.com --- Comment #13 from Brad Roberts <braddr@puremagic.com> 2012-05-12 10:08:27 PDT --- Looking at this history of this bug and the pulls in github, it looks like there isn't a valid pull request that fixes this bug right now. Removing the keyword. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 12, 2012 [Issue 4953] Regression(2.031): templates don't do implicit conversion properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | http://d.puremagic.com/issues/show_bug.cgi?id=4953 --- Comment #14 from Kenji Hara <k.hara.pg@gmail.com> 2012-05-12 10:19:09 PDT --- (In reply to comment #13) > Looking at this history of this bug and the pulls in github, it looks like there isn't a valid pull request that fixes this bug right now. Removing the keyword. My dmd/pull/45 fixes both bug 5896 and this. I think the two bugs need the changes of each other. Please keep 'pull' keyword. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 12, 2012 [Issue 4953] Regression(2.031): templates don't do implicit conversion properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | http://d.puremagic.com/issues/show_bug.cgi?id=4953 Brad Roberts <braddr@puremagic.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #15 from Brad Roberts <braddr@puremagic.com> 2012-05-12 10:29:31 PDT --- I'll add it back, but it looked like Walter was rejecting the pull request. It is still open, so might as well leave them linked. Walter, would you put regression pull requests such as this one near the top of your todo list? Either reject with reasons or pull. Limbo sucks. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 12, 2012 [Issue 4953] Regression(2.031): templates don't do implicit conversion properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | http://d.puremagic.com/issues/show_bug.cgi?id=4953 --- Comment #16 from github-bugzilla@puremagic.com 2012-05-12 11:35:46 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/91093c7bb19b2f43dffa868c5f8125e1bd347412 fix Issue 4953 - Regression(2.031): templates don't do implicit conversion properly -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 12, 2012 [Issue 4953] Regression(2.031): templates don't do implicit conversion properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | http://d.puremagic.com/issues/show_bug.cgi?id=4953 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 10, 2012 [Issue 4953] Regression(2.031): templates don't do implicit conversion properly | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | http://d.puremagic.com/issues/show_bug.cgi?id=4953 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timon.gehr@gmx.ch --- Comment #17 from yebblies <yebblies@gmail.com> 2012-07-11 01:38:27 EST --- *** Issue 7366 has been marked as a duplicate of this issue. *** -- 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