-c74e624c9a0a9e7e39f96b2f005f86e123df56c9
+420cce2a654f14b8de4a75cbb5d4203fce8d4e0f
The first line of this file holds the git revision number of the last
merge done from the dlang/dmd repository.
result = (*se->elements)[i];
if (!result)
{
- e->error("Internal Compiler Error: null field %s", v->toChars());
- result = CTFEExp::cantexp;
- return;
+ // https://issues.dlang.org/show_bug.cgi?id=19897
+ // Zero-length fields don't have an initializer.
+ if (v->type->size() == 0)
+ result = voidInitLiteral(e->type, v).copy();
+ else
+ {
+ e->error("Internal Compiler Error: null field %s", v->toChars());
+ result = CTFEExp::cantexp;
+ return;
+ }
}
if (result->op == TOKvoid)
{