Bug 2549 – Segfault on array multiplication.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-12-30T16:43:00Z
Last change time
2015-06-09T01:20:51Z
Keywords
patch, wrong-code
Assigned to
nobody
Creator
dsimcha

Comments

Comment #0 by dsimcha — 2008-12-30T16:43:42Z
import std.stdio; void main() { double[] foo = [1.0,2,3,4,5].dup; writeln(foo[] * 2.0); } Output of this program on Win32: object.Error: Access Violation [
Comment #1 by hoganmeier — 2010-01-17T17:28:45Z
Also note the following: float[] a = [0.f, 0.5f, 1.0f, 1.5f, 2.0f, 2.5f]; float[] b = [0.f, 0.5f, 1.0f, 1.5f, 2.0f, 2.5f]; writeln(a[] * b[]); // compiles, but results in access violation writeln(a[] + b[]); // array operation a[] + b[] not implemented This bug also is in relation to http://d.puremagic.com/issues/show_bug.cgi?id=3066
Comment #2 by clugdbug — 2010-04-28T21:20:06Z
The patch for bug 3522 fixes this.
Comment #3 by bugzilla — 2010-04-29T21:05:47Z
Changeset 460
Comment #4 by clugdbug — 2010-05-05T19:05:22Z
Fixed DMD2.044