[Issue 13827] Internal Compiler Error: null field

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Dec 7 05:05:24 PST 2014


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

Ketmar Dark <ketmar at ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar at ketmar.no-ip.org

--- Comment #2 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
struct Matrix(T) {
  private static defaultMatrix() {
    T arr[3];
    return arr;
  }

  union {
    T[3] A = defaultMatrix;
    T[3] flat;
  }

  this (T v) {
    flat[0] = v;
  }
}

enum S = Matrix!int(42);

--


More information about the Digitalmars-d-bugs mailing list