# HG changeset patch # User ChristianK # Date 1216031963 -7200 # Node ID 051f5b550d9c3ffbd84184d75febe0befa0af6d4 # Parent 82af71383b8a5a6199f0bb04c64b12dabf77e62b [svn r379] Fix slice assigns of the form T[] = T when T is a typedef. Fixes run/a/array_initialization_20_B, D, F, H. diff -r 82af71383b8a -r 051f5b550d9c gen/llvmhelpers.cpp --- a/gen/llvmhelpers.cpp Mon Jul 14 12:11:30 2008 +0200 +++ b/gen/llvmhelpers.cpp Mon Jul 14 12:39:23 2008 +0200 @@ -541,7 +541,7 @@ if (DSliceValue* s2 = rhs->isSlice()) { DtoArrayCopySlices(s, s2); } - else if (t->next->equals(t2)) { + else if (t->next->toBasetype()->equals(t2)) { DtoArrayInit(s, rhs); } else {