[Issue 2778] alias this + IFTI doesn't work.

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2778

Andrei Alexandrescu  changed:

   What|Removed |Added

Version|2.027   |D2

--


[Issue 2778] alias this + IFTI doesn't work.

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


Kenji Hara  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


--- Comment #6 from Kenji Hara  2011-12-20 22:08:57 PST ---
https://github.com/D-Programming-Language/dmd/commit/01ba9d230205c10909a021787f00f741ee511e01

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


[Issue 2778] alias this + IFTI doesn't work.

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


Kenji Hara  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


--- Comment #5 from Kenji Hara  2011-11-02 04:47:30 PDT ---
I found a lack of my patch.

Code:

inout(T) [n] id(T, size_t n)(inout(T) [n] v){ return v; }

void main()
{
static struct S
{
ubyte[3] val = [1,2,3];
@property ref void[3] get(){ return *cast(void[3]*)&val; }
alias get this;
}
S s;
id(s);
}

Output:

test.d(18): Error: template test.id(T,uint n) does not match any function
template declaration
test.d(18): Error: template test.id(T,uint n) cannot deduce template function
from argument types !()(S)

Additional patch for repair it:
https://github.com/D-Programming-Language/dmd/pull/487

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


[Issue 2778] alias this + IFTI doesn't work.

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


Walter Bright  changed:

   What|Removed |Added

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


--- Comment #4 from Walter Bright  2011-11-02 
00:22:11 PDT ---
https://github.com/D-Programming-Language/dmd/commit/35ee32cafe1cfb606e1d511807206829f8ed5855

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


[Issue 2778] alias this + IFTI doesn't work.

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



--- Comment #3 from Steven Schveighoffer  2011-10-24 
08:46:32 PDT ---
(In reply to comment #1)
> http://d.puremagic.com/issues/show_bug.cgi?id=2778

Nice reference :)

Think you meant:

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

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


[Issue 2778] alias this + IFTI doesn't work.

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


Kenji Hara  changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #2 from Kenji Hara  2011-10-23 22:46:19 PDT ---
*** Issue 6569 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 2778] alias this + IFTI doesn't work.

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


Kenji Hara  changed:

   What|Removed |Added

   Keywords||patch


--- Comment #1 from Kenji Hara  2011-10-23 09:17:05 PDT ---
http://d.puremagic.com/issues/show_bug.cgi?id=2778

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