Skip to content

Commit

Permalink
Fix Issue 9301 - using XMM.PSHUFD results in an internal compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Nov 23, 2013
1 parent 8f1d03a commit 0d60cae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cast.c
Expand Up @@ -193,6 +193,8 @@ MATCH IntegerExp::implicitConvTo(Type *t)
if (t->ty == Tvector)
{ TypeVector *tv = (TypeVector *)t;
TypeBasic *tb = tv->elementType();
if (tb->ty == Tvoid)
goto Lno;
toty = tb->ty;
}

Expand Down
13 changes: 13 additions & 0 deletions test/fail_compilation/fail9301.d
@@ -0,0 +1,13 @@
/*
REQUIRED_ARGS: -o-
PERMUTE_ARGS:
TEST_OUTPUT:
---
fail_compilation/fail9301.d(12): Error: cannot implicitly convert expression (0) of type int to __vector(void[16])
---
*/

void main()
{
__vector(void[16]) x = 0x0;
}

0 comments on commit 0d60cae

Please sign in to comment.