Skip to content

Commit

Permalink
CTFE: DotTypeExp cannot be interpreted
Browse files Browse the repository at this point in the history
Generate an ICE if it tries, rather than an incomprehensible error.
  • Loading branch information
don-clugston-sociomantic committed May 31, 2013
1 parent 28d9971 commit b03fa2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/interpret.c
Expand Up @@ -2293,6 +2293,11 @@ Expression *UnaExp::interpret(InterState *istate, CtfeGoal goal)
#if LOG
printf("%s UnaExp::interpret() %s\n", loc.toChars(), toChars());
#endif
if (op == TOKdottype)
{
error("Internal Compiler Error: CTFE DotType: %s", toChars());
return EXP_CANT_INTERPRET;
}
e1 = this->e1->interpret(istate);
if (exceptionOrCantInterpret(e1))
return e1;
Expand Down

0 comments on commit b03fa2d

Please sign in to comment.