[Issue 6312] template instance cannot use argument from enclosing template

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

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|D1  D2 |D2

--


[Issue 6312] template instance cannot use argument from enclosing template

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6312


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

   What|Removed |Added

   Keywords||pull


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2013-04-06 02:18:06 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1850

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


[Issue 6312] template instance cannot use argument from enclosing template

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6312



--- Comment #3 from github-bugzi...@puremagic.com 2013-04-06 18:47:06 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/db5e6087a2ed742bb0ce024dc5154075cd54df43
fix Issue 6312 - template instance cannot use argument from enclosing template

https://github.com/D-Programming-Language/dmd/commit/f946ede5e9b597c6e32c1e66b311460204532cd9
Merge pull request #1850 from 9rnsr/fix6312

Issue 6312 - template instance cannot use argument from enclosing template

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


[Issue 6312] template instance cannot use argument from enclosing template

2013-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6312


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

   What|Removed |Added

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


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


[Issue 6312] template instance cannot use argument from enclosing template

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



--- Comment #1 from Trass3r mrmoc...@gmx.de 2011-11-11 08:24:41 PST ---
Ok, here's a real ugly workaround:

extern(C) void printf(const char*, ...);
void h() { printf(h()); }

class Bla
{
mixin wrap!h;
}

private enum dummy {foo}

mixin template wrap(alias f)
{
void blub(alias h = dummy)()
{
static if (is (h == enum))
alias f g;
else
alias h g;

g();
}
}

void main()
{
Bla b = new Bla();
b.blub();
}

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