Skip to content

Commit

Permalink
Merge pull request #680 from yebblies/issue3812
Browse files Browse the repository at this point in the history
Issue 3812 - Missing line number for implicit cast of variadic function to array
  • Loading branch information
WalterBright committed Feb 22, 2012
2 parents 79c5c2a + fdf6dcf commit 67ba766
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/interpret.c
Expand Up @@ -460,7 +460,8 @@ void showCtfeExpr(Expression *e, int level = 0)
* arguments function arguments
* thisarg 'this', if a needThis() function, NULL if not.
*
* Return result expression if successful, EXP_CANT_INTERPRET if not.
* Return result expression if successful, EXP_CANT_INTERPRET if not,
* or EXP_VOID_INTERPRET if function returned void.
*/

Expression *FuncDeclaration::interpret(InterState *istate, Expressions *arguments, Expression *thisarg)
Expand Down Expand Up @@ -4807,6 +4808,10 @@ Expression *CallExp::interpret(InterState *istate, CtfeGoal goal)
if (!global.gag)
showCtfeBackTrace(istate, this, fd);
}
else if (eresult == EXP_VOID_INTERPRET)
;
else
eresult->loc = loc;
return eresult;
}

Expand Down

0 comments on commit 67ba766

Please sign in to comment.