[Issue 13318] New: Error: cannot have e.tuple

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 17 16:47:13 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13318

          Issue ID: 13318
           Summary: Error: cannot have e.tuple
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: ellery-newcomer at utulsa.edu

the code:

struct Base2 {
    int i;
}

mixin template NoPadding(T) {
    alias Ts = typeof(T.tupleof);
    Ts fields;
}

struct Derived {
    mixin NoPadding!Base2 _base2;
}

void main() {
    Derived* d;
    int* i = &d._base2.fields[0];
}


the compile:

dmd test2.d

(2.065, 2.066rc2)

the wat:

test2.d(16): Error: cannot have e.tuple

--


More information about the Digitalmars-d-bugs mailing list