Bug 7949 – [ICE] (cgcod.c) with SIMD array

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2012-04-20T09:54:00Z
Last change time
2012-04-22T12:04:11Z
Assigned to
nobody
Creator
suicidenet

Comments

Comment #0 by suicidenet — 2012-04-20T09:54:41Z
DMD 2.059 segfaults when compiling this: import std.stdio; import std.math; import core.simd; void main() { int[4] o = [1,2,3]; int4 v1; v1.array = o; int4 v2; v2.array = o; auto r = __simd(XMM.ADDPS, v1,v2); writeln(r.array); //this causes a segmentation fault when compiling }
Comment #1 by lovelydear — 2012-04-21T13:25:23Z
On 2.059 Win32 PS E:\DigitalMars\dmd2\samples> rdmd bug.d Internal error: ..\ztc\cgcod.c 1447
Comment #2 by github-bugzilla — 2012-04-22T12:03:35Z