[pkg-d-commits] [ldc] 146/149: Cherry-pick front-end fix wrt. casting scalars to vectors
Matthias Klumpp
mak at moszumanska.debian.org
Sun Apr 23 22:37:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
mak pushed a commit to annotated tag v1.2.0
in repository ldc.
commit 3c674f7ce1a148e3a385580311317535408f64e2
Author: Martin <noone at nowhere.com>
Date: Fri Mar 31 23:53:47 2017 +0200
Cherry-pick front-end fix wrt. casting scalars to vectors
From dlang/dmd at b75ef84, which is already in master with appropriate tests.
Fixes issue #2056.
---
ddmd/expression.d | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ddmd/expression.d b/ddmd/expression.d
index d022097..3bfc9f4 100644
--- a/ddmd/expression.d
+++ b/ddmd/expression.d
@@ -11376,7 +11376,7 @@ extern (C++) final class VectorExp : UnaExp
result |= checkElem((cast(ArrayLiteralExp)e1).getElement(i));
}
}
- else
+ else if (e1.type.ty == Tvoid)
result = checkElem(e1);
return result ? new ErrorExp() : this;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git
More information about the pkg-d-commits
mailing list