Improved initializer ICE error message.

This commit is contained in:
David Nadlinger 2012-08-31 01:14:00 +02:00
parent 508652fd8b
commit 364cfb6714

View file

@ -1509,7 +1509,8 @@ LLConstant* DtoConstExpInit(Loc loc, Type* type, Expression* exp)
}
else
{
error("cannot yet convert default initializer %s of type %s to %s", exp->toChars(), exp->type->toChars(), type->toChars());
error(loc, "LDC internal error: cannot yet convert default initializer %s of type %s to %s",
exp->toChars(), exp->type->toChars(), type->toChars());
fatal();
}
assert(0);