Bug 13418 – uninitializedArray & core.simd.Vector return incorrect type

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2014-09-03T09:39:00Z
Last change time
2015-06-09T05:11:56Z
Assigned to
nobody
Creator
enjouzensyou.boinc
Depends on
12776

Comments

Comment #0 by enjouzensyou.boinc — 2014-09-03T09:39:32Z
Cannot not compile this code on dmd2.066.0. ------ import core.simd; import std.array; void main() { // OK on 2.065.0 // NG on 2.066.0 // Error: cannot implicitly convert expression (uninitializedArray(1024)) of type int[4][] to __vector(int[4])[] Vector!(int[4])[] arr = uninitializedArray!(Vector!(int[4])[])(1024); } ------
Comment #1 by enjouzensyou.boinc — 2014-09-07T02:06:09Z
sorry. typo"Cannot not" -> "Cannot".
Comment #2 by enjouzensyou.boinc — 2014-09-07T02:07:08Z
sorry. typo"Cannot not" -> "Cannot".
Comment #3 by john.loughran.colvin — 2014-12-17T22:28:11Z
The problem here is actually due to a dmd bug: https://issues.dlang.org/show_bug.cgi?id=12776