Mercurial > projects > ldc
diff dmd/interpret.c @ 1640:9bf06e02070b
Merge DMD 1.057.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 08 Mar 2010 21:39:20 +0100 |
parents | 44b145be2ef5 |
children |
line wrap: on
line diff
--- a/dmd/interpret.c Mon Mar 08 20:09:18 2010 +0100 +++ b/dmd/interpret.c Mon Mar 08 21:39:20 2010 +0100 @@ -115,7 +115,8 @@ assert(tb->ty == Tfunction); TypeFunction *tf = (TypeFunction *)tb; Type *tret = tf->next->toBasetype(); - if (tf->varargs && arguments && parameters && arguments->dim != parameters->dim) + if (tf->varargs && arguments && + ((parameters && arguments->dim != parameters->dim) || (!parameters && arguments->dim))) { cantInterpret = 1; error("C-style variadic functions are not yet implemented in CTFE"); return NULL;