Merge dmdfe 2.057

This commit is contained in:
Alexey Prokhin 2011-12-15 12:05:24 +04:00
parent 4e8afa8858
commit 88cff99bd4
32 changed files with 2518 additions and 1378 deletions

View file

@ -306,10 +306,13 @@ void DtoResolveFunction(FuncDeclaration* fdecl)
if (fdecl->ir.resolved) return;
fdecl->ir.resolved = true;
// If errors occurred compiling it, such as bugzilla 6118
Type *type = fdecl->type;
if (type && type->ty == Tfunction && ((TypeFunction *)type)->next->ty == Terror)
return;
// If errors occurred compiling it, such as bugzilla 6118
if (type && type->ty == Tfunction) {
Type *next = ((TypeFunction *)type)->next;
if (!next || next->ty == Terror)
return;
}
//printf("resolve function: %s\n", fdecl->toPrettyChars());