Skip to content

Commit

Permalink
Merge branch 'stable' into merge_stable
Browse files Browse the repository at this point in the history
Conflicts:
	src/expression.c
	src/func.c
	src/posix.mak
	src/win32.mak
	test/runnable/opover.d
  • Loading branch information
MartinNowak committed Apr 25, 2015
2 parents c5f2740 + 779e52c commit 84b9186
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interpret.c
Expand Up @@ -4222,9 +4222,9 @@ class Interpreter : public Visitor
newelem = paintTypeOntoLiteral(elemtype, newelem);
if (needsPostblit)
{
newelem = evaluatePostblit(istate, newelem);
if (exceptionOrCantInterpret(newelem))
return newelem;
Expression *x = evaluatePostblit(istate, newelem);
if (exceptionOrCantInterpret(x))
return x;
}
(*oldelems)[(size_t)(j + firstIndex)] = newelem;
}
Expand Down
14 changes: 14 additions & 0 deletions test/compilable/interpret3.d
Expand Up @@ -7387,6 +7387,20 @@ static assert(
return 1;
}());

/**************************************************
14463 - ICE on slice assignment without postblit
**************************************************/

struct Boo14463
{
private int[1] c;
this(int[] x)
{
c = x;
}
}
immutable Boo14463 a14463 = Boo14463([1]);

/**************************************************
13295 - Don't copy struct literal in VarExp::interpret()
**************************************************/
Expand Down

0 comments on commit 84b9186

Please sign in to comment.