Skip to content

Commit

Permalink
CTFE: don't rvalue interpret ref slice assign
Browse files Browse the repository at this point in the history
a[] = b[] shouldn't do an rvalue interpret if the array contents are references.
This fixes a wrong-code bug.
  • Loading branch information
Don Clugston committed May 16, 2011
1 parent b0711cc commit a00f2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpret.c
Expand Up @@ -2664,7 +2664,7 @@ Expression *BinExp::interpretAssignCommon(InterState *istate, CtfeGoal goal, fp_
return newval;
}
}
else
else if (e1->op != TOKslice || newval->op != TOKslice)
{
newval = newval->interpret(istate);
if (newval == EXP_CANT_INTERPRET)
Expand Down

0 comments on commit a00f2a9

Please sign in to comment.