From a00f2a9bf6943c62079490354c5ab9b1ee311da2 Mon Sep 17 00:00:00 2001 From: Don Clugston Date: Mon, 16 May 2011 09:53:50 +0200 Subject: [PATCH] CTFE: don't rvalue interpret ref slice assign a[] = b[] shouldn't do an rvalue interpret if the array contents are references. This fixes a wrong-code bug. --- src/interpret.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpret.c b/src/interpret.c index 44976c3e33d7..2e053f45d98a 100644 --- a/src/interpret.c +++ b/src/interpret.c @@ -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)