From ffe26e4ccc5e2a864453759eb3a8472227a9f545 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Sun, 8 Dec 2013 14:56:40 +0400 Subject: [PATCH] Fix DMD Issue 11238 - Codegen error when this is a ref parameter to the method --- gen/toir.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gen/toir.cpp b/gen/toir.cpp index 8bdf9f8d..b9d6f34e 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -520,6 +520,7 @@ DValue* AssignExp::toElem(IRState* p) if (se->lwr == NULL && ta->ty == Tsarray && e2->op == TOKarrayliteral && + op == TOKconstruct && // DMD Bugzilla 11238: avoid aliasing issue t2->nextOf()->mutableOf()->implicitConvTo(ta->nextOf())) { ArrayLiteralExp * const ale = static_cast(e2);