[Issue 7851] Internal error: e2ir.c 688

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 15 22:33:11 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7851


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> 2012-05-15 22:34:41 PDT ---
This reduces to:

template TypeTuple(TList...)
{
    alias TList TypeTuple;
}

struct Tuple(Specs...)
{
    TypeTuple!(int, long, float) mem;

    alias Identity!(mem[0]) _0;
    alias Identity!(mem[1]) _1;
    alias Identity!(mem[2]) _2;

    alias mem this;

    enum length = mem.length;
}

private template Identity(alias T)
{
    alias T Identity;
}

void main() {
  alias Tuple!(int, long, float) TL;
  foreach (i; TL)
  { }
}

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


More information about the Digitalmars-d-bugs mailing list