[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2012-07-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 CC||timon.g...@gmx.ch


--- Comment #17 from yebblies yebbl...@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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2012-05-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


Brad Roberts bra...@puremagic.com changed:

   What|Removed |Added

   Keywords|pull|
 CC||bra...@puremagic.com


--- Comment #13 from Brad Roberts bra...@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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2012-05-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953



--- Comment #14 from Kenji Hara k.hara...@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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2012-05-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


Brad Roberts bra...@puremagic.com changed:

   What|Removed |Added

   Keywords||pull


--- Comment #15 from Brad Roberts bra...@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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2012-05-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953



--- Comment #16 from github-bugzi...@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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2012-05-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


Walter Bright bugzi...@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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2012-03-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull


--- Comment #12 from Kenji Hara k.hara...@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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2012-03-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx


--- Comment #11 from hst...@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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2012-02-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

   Keywords|pull|
 AssignedTo|nob...@puremagic.com|bugzi...@digitalmars.com


--- Comment #10 from yebblies yebbl...@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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2011-09-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


Erik Baklund ebakl...@hotmail.com changed:

   What|Removed |Added

 CC||ebakl...@hotmail.com


--- Comment #9 from Erik Baklund ebakl...@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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2011-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 CC||k.hara...@gmail.com


--- Comment #8 from yebblies yebbl...@gmail.com 2011-08-29 14:39:56 EST ---
*** Issue 6567 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: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2011-07-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953



--- Comment #7 from yebblies yebbl...@gmail.com 2011-07-22 16:08:51 EST ---
(In reply to comment #6)
 (In reply to comment #5)
  https://github.com/D-Programming-Language/dmd/pull/239
 
 The patch breaks the test suite.

Redone: https://github.com/D-Programming-Language/dmd/pull/269

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2011-07-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #6 from Walter Bright bugzi...@digitalmars.com 2011-07-21 
18:09:50 PDT ---
(In reply to comment #5)
 https://github.com/D-Programming-Language/dmd/pull/239

The patch breaks the test suite.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2011-07-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

   Keywords||patch
 CC||yebbl...@gmail.com
   Platform|Other   |All
 OS/Version|Linux   |All


--- Comment #5 from yebblies yebbl...@gmail.com 2011-07-12 20:18:23 EST ---
https://github.com/D-Programming-Language/dmd/pull/239

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4953] Regression(2.031): templates don't do implicit conversion properly

2010-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4953


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

Summary|opBinary, opBinaryRight |Regression(2.031):
   |don't do implicit   |templates don't do implicit
   |conversion properly |conversion properly
   Severity|normal  |regression


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---