[Issue 6404] Cannot check ref-ness of auto ref parameter in template constraint

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


d...@dawgfoto.de changed:

   What|Removed |Added

 CC||d...@dawgfoto.de


--- Comment #5 from d...@dawgfoto.de 2012-02-10 06:10:29 PST ---
I think it would be neat to extend this to IsExpressions.
void foo()(auto ref int val) if (is(typeof(val) == ref))

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


[Issue 6404] Cannot check ref-ness of auto ref parameter in template constraint

2011-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6404


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

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


--- Comment #4 from Walter Bright bugzi...@digitalmars.com 2011-10-02 
18:18:53 PDT ---
https://github.com/D-Programming-Language/dmd/commit/91debf464f8b6c49a0d522d10fce285ad1a5f9e7

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


[Issue 6404] Cannot check ref-ness of auto ref parameter in template constraint

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


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

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2011-07-31 02:47:58 PDT ---
Sorry my patch is incomplete, because it does not support auto ref tuple
parameter.

void rvalueVargs(T...)(auto ref T x) if (!__traits(isRef, x[0])) {}
void lvalueVargs(T...)(auto ref T x) if ( __traits(isRef, x[0])) {}
void test6404()
{
int n;

static assert(!__traits(compiles, rvalueVargs(n)));
static assert( __traits(compiles, rvalueVargs(0)));

static assert( __traits(compiles, lvalueVargs(n)));
static assert(!__traits(compiles, lvalueVargs(0)));
}

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


[Issue 6404] Cannot check ref-ness of auto ref parameter in template constraint

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


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

   What|Removed |Added

   Keywords||patch


--- Comment #3 from Kenji Hara k.hara...@gmail.com 2011-07-31 03:21:54 PDT ---
Retry to fix it.
https://github.com/D-Programming-Language/dmd/pull/285

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


[Issue 6404] Cannot check ref-ness of auto ref parameter in template constraint

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


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

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #1 from Walter Bright bugzi...@digitalmars.com 2011-07-30 
13:08:23 PDT ---
https://github.com/D-Programming-Language/dmd/commit/407cd0fa8bfe7443302bbf460d56a1e1847c5c01

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